Class AmazonS3Bucket.Builder (3.87.0)

public static final class AmazonS3Bucket.Builder extends GeneratedMessage.Builder<AmazonS3Bucket.Builder> implements AmazonS3BucketOrBuilder

Amazon S3 bucket.

Protobuf type google.privacy.dlp.v2.AmazonS3Bucket

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AmazonS3Bucket build()
Returns
Type Description
AmazonS3Bucket

buildPartial()

public AmazonS3Bucket buildPartial()
Returns
Type Description
AmazonS3Bucket

clear()

public AmazonS3Bucket.Builder clear()
Returns
Type Description
AmazonS3Bucket.Builder
Overrides

clearAwsAccount()

public AmazonS3Bucket.Builder clearAwsAccount()

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Returns
Type Description
AmazonS3Bucket.Builder

clearBucketName()

public AmazonS3Bucket.Builder clearBucketName()

Required. The bucket name.

string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AmazonS3Bucket.Builder

This builder for chaining.

getAwsAccount()

public AwsAccount getAwsAccount()

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Returns
Type Description
AwsAccount

The awsAccount.

getAwsAccountBuilder()

public AwsAccount.Builder getAwsAccountBuilder()

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Returns
Type Description
AwsAccount.Builder

getAwsAccountOrBuilder()

public AwsAccountOrBuilder getAwsAccountOrBuilder()

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Returns
Type Description
AwsAccountOrBuilder

getBucketName()

public String getBucketName()

Required. The bucket name.

string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The bucketName.

getBucketNameBytes()

public ByteString getBucketNameBytes()

Required. The bucket name.

string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for bucketName.

getDefaultInstanceForType()

public AmazonS3Bucket getDefaultInstanceForType()
Returns
Type Description
AmazonS3Bucket

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAwsAccount()

public boolean hasAwsAccount()

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Returns
Type Description
boolean

Whether the awsAccount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAwsAccount(AwsAccount value)

public AmazonS3Bucket.Builder mergeAwsAccount(AwsAccount value)

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Parameter
Name Description
value AwsAccount
Returns
Type Description
AmazonS3Bucket.Builder

mergeFrom(AmazonS3Bucket other)

public AmazonS3Bucket.Builder mergeFrom(AmazonS3Bucket other)
Parameter
Name Description
other AmazonS3Bucket
Returns
Type Description
AmazonS3Bucket.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AmazonS3Bucket.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AmazonS3Bucket.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AmazonS3Bucket.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AmazonS3Bucket.Builder
Overrides

setAwsAccount(AwsAccount value)

public AmazonS3Bucket.Builder setAwsAccount(AwsAccount value)

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Parameter
Name Description
value AwsAccount
Returns
Type Description
AmazonS3Bucket.Builder

setAwsAccount(AwsAccount.Builder builderForValue)

public AmazonS3Bucket.Builder setAwsAccount(AwsAccount.Builder builderForValue)

The AWS account.

.google.privacy.dlp.v2.AwsAccount aws_account = 1;

Parameter
Name Description
builderForValue AwsAccount.Builder
Returns
Type Description
AmazonS3Bucket.Builder

setBucketName(String value)

public AmazonS3Bucket.Builder setBucketName(String value)

Required. The bucket name.

string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The bucketName to set.

Returns
Type Description
AmazonS3Bucket.Builder

This builder for chaining.

setBucketNameBytes(ByteString value)

public AmazonS3Bucket.Builder setBucketNameBytes(ByteString value)

Required. The bucket name.

string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for bucketName to set.

Returns
Type Description
AmazonS3Bucket.Builder

This builder for chaining.