Class TransferTypes.AwsS3Data.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
com.google.storagetransfer.v1.proto.TransferTypes.AwsS3Data.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferTypes.AwsS3DataOrBuilder, Cloneable
Enclosing class:
TransferTypes.AwsS3Data

public static final class TransferTypes.AwsS3Data.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder> implements TransferTypes.AwsS3DataOrBuilder
 An AwsS3Data resource can be a data source, but not a data sink.
 In an AwsS3Data resource, an object's name is the S3 object's key name.
 
Protobuf type google.storagetransfer.v1.AwsS3Data
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
    • getDefaultInstanceForType

      public TransferTypes.AwsS3Data getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransferTypes.AwsS3Data build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransferTypes.AwsS3Data buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransferTypes.AwsS3Data.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferTypes.AwsS3Data.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
    • mergeFrom

      public TransferTypes.AwsS3Data.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferTypes.AwsS3Data.Builder>
      Throws:
      IOException
    • getPrivateNetworkCase

      public TransferTypes.AwsS3Data.PrivateNetworkCase getPrivateNetworkCase()
      Specified by:
      getPrivateNetworkCase in interface TransferTypes.AwsS3DataOrBuilder
    • clearPrivateNetwork

      public TransferTypes.AwsS3Data.Builder clearPrivateNetwork()
    • getBucketName

      public String getBucketName()
       Required. S3 Bucket name (see
       [Creating a
       bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
       
      string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBucketName in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The bucketName.
    • getBucketNameBytes

      public com.google.protobuf.ByteString getBucketNameBytes()
       Required. S3 Bucket name (see
       [Creating a
       bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
       
      string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBucketNameBytes in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The bytes for bucketName.
    • setBucketName

      public TransferTypes.AwsS3Data.Builder setBucketName(String value)
       Required. S3 Bucket name (see
       [Creating a
       bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
       
      string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bucketName to set.
      Returns:
      This builder for chaining.
    • clearBucketName

      public TransferTypes.AwsS3Data.Builder clearBucketName()
       Required. S3 Bucket name (see
       [Creating a
       bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
       
      string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setBucketNameBytes

      public TransferTypes.AwsS3Data.Builder setBucketNameBytes(com.google.protobuf.ByteString value)
       Required. S3 Bucket name (see
       [Creating a
       bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
       
      string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for bucketName to set.
      Returns:
      This builder for chaining.
    • hasAwsAccessKey

      public boolean hasAwsAccessKey()
       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasAwsAccessKey in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      Whether the awsAccessKey field is set.
    • getAwsAccessKey

      public TransferTypes.AwsAccessKey getAwsAccessKey()
       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getAwsAccessKey in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The awsAccessKey.
    • setAwsAccessKey

       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • setAwsAccessKey

      public TransferTypes.AwsS3Data.Builder setAwsAccessKey(TransferTypes.AwsAccessKey.Builder builderForValue)
       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • mergeAwsAccessKey

       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • clearAwsAccessKey

      public TransferTypes.AwsS3Data.Builder clearAwsAccessKey()
       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • getAwsAccessKeyBuilder

      public TransferTypes.AwsAccessKey.Builder getAwsAccessKeyBuilder()
       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
    • getAwsAccessKeyOrBuilder

      public TransferTypes.AwsAccessKeyOrBuilder getAwsAccessKeyOrBuilder()
       Input only. AWS access key used to sign the API requests to the AWS S3
       bucket. Permissions on the bucket must be granted to the access ID of the
       AWS access key.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getAwsAccessKeyOrBuilder in interface TransferTypes.AwsS3DataOrBuilder
    • getPath

      public String getPath()
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 3;
      Specified by:
      getPath in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 3;
      Specified by:
      getPathBytes in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public TransferTypes.AwsS3Data.Builder setPath(String value)
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 3;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public TransferTypes.AwsS3Data.Builder clearPath()
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 3;
      Returns:
      This builder for chaining.
    • setPathBytes

      public TransferTypes.AwsS3Data.Builder setPathBytes(com.google.protobuf.ByteString value)
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 3;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getRoleArn

      public String getRoleArn()
       The Amazon Resource Name (ARN) of the role to support temporary
       credentials via `AssumeRoleWithWebIdentity`. For more information about
       ARNs, see [IAM
       ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns).
      
       When a role ARN is provided, Transfer Service fetches temporary
       credentials for the session using a `AssumeRoleWithWebIdentity` call for
       the provided role using the
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for
       this project.
       
      string role_arn = 4;
      Specified by:
      getRoleArn in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The roleArn.
    • getRoleArnBytes

      public com.google.protobuf.ByteString getRoleArnBytes()
       The Amazon Resource Name (ARN) of the role to support temporary
       credentials via `AssumeRoleWithWebIdentity`. For more information about
       ARNs, see [IAM
       ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns).
      
       When a role ARN is provided, Transfer Service fetches temporary
       credentials for the session using a `AssumeRoleWithWebIdentity` call for
       the provided role using the
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for
       this project.
       
      string role_arn = 4;
      Specified by:
      getRoleArnBytes in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The bytes for roleArn.
    • setRoleArn

      public TransferTypes.AwsS3Data.Builder setRoleArn(String value)
       The Amazon Resource Name (ARN) of the role to support temporary
       credentials via `AssumeRoleWithWebIdentity`. For more information about
       ARNs, see [IAM
       ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns).
      
       When a role ARN is provided, Transfer Service fetches temporary
       credentials for the session using a `AssumeRoleWithWebIdentity` call for
       the provided role using the
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for
       this project.
       
      string role_arn = 4;
      Parameters:
      value - The roleArn to set.
      Returns:
      This builder for chaining.
    • clearRoleArn

      public TransferTypes.AwsS3Data.Builder clearRoleArn()
       The Amazon Resource Name (ARN) of the role to support temporary
       credentials via `AssumeRoleWithWebIdentity`. For more information about
       ARNs, see [IAM
       ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns).
      
       When a role ARN is provided, Transfer Service fetches temporary
       credentials for the session using a `AssumeRoleWithWebIdentity` call for
       the provided role using the
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for
       this project.
       
      string role_arn = 4;
      Returns:
      This builder for chaining.
    • setRoleArnBytes

      public TransferTypes.AwsS3Data.Builder setRoleArnBytes(com.google.protobuf.ByteString value)
       The Amazon Resource Name (ARN) of the role to support temporary
       credentials via `AssumeRoleWithWebIdentity`. For more information about
       ARNs, see [IAM
       ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns).
      
       When a role ARN is provided, Transfer Service fetches temporary
       credentials for the session using a `AssumeRoleWithWebIdentity` call for
       the provided role using the
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for
       this project.
       
      string role_arn = 4;
      Parameters:
      value - The bytes for roleArn to set.
      Returns:
      This builder for chaining.
    • getCloudfrontDomain

      public String getCloudfrontDomain()
       Optional. The CloudFront distribution domain name pointing to this bucket,
       to use when fetching.
      
       See
       [Transfer from S3 via
       CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
       for more information.
      
       Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
       begin with `https://`.
       
      string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCloudfrontDomain in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The cloudfrontDomain.
    • getCloudfrontDomainBytes

      public com.google.protobuf.ByteString getCloudfrontDomainBytes()
       Optional. The CloudFront distribution domain name pointing to this bucket,
       to use when fetching.
      
       See
       [Transfer from S3 via
       CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
       for more information.
      
       Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
       begin with `https://`.
       
      string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCloudfrontDomainBytes in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The bytes for cloudfrontDomain.
    • setCloudfrontDomain

      public TransferTypes.AwsS3Data.Builder setCloudfrontDomain(String value)
       Optional. The CloudFront distribution domain name pointing to this bucket,
       to use when fetching.
      
       See
       [Transfer from S3 via
       CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
       for more information.
      
       Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
       begin with `https://`.
       
      string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cloudfrontDomain to set.
      Returns:
      This builder for chaining.
    • clearCloudfrontDomain

      public TransferTypes.AwsS3Data.Builder clearCloudfrontDomain()
       Optional. The CloudFront distribution domain name pointing to this bucket,
       to use when fetching.
      
       See
       [Transfer from S3 via
       CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
       for more information.
      
       Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
       begin with `https://`.
       
      string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCloudfrontDomainBytes

      public TransferTypes.AwsS3Data.Builder setCloudfrontDomainBytes(com.google.protobuf.ByteString value)
       Optional. The CloudFront distribution domain name pointing to this bucket,
       to use when fetching.
      
       See
       [Transfer from S3 via
       CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront)
       for more information.
      
       Format: `https://{id}.cloudfront.net` or any valid custom domain. Must
       begin with `https://`.
       
      string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for cloudfrontDomain to set.
      Returns:
      This builder for chaining.
    • getCredentialsSecret

      public String getCredentialsSecret()
       Optional. The Resource name of a secret in Secret Manager.
      
       AWS credentials must be stored in Secret Manager in JSON format:
      
       {
       "access_key_id": "ACCESS_KEY_ID",
       "secret_access_key": "SECRET_ACCESS_KEY"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Amazon S3]
       (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or
       [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCredentialsSecret in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The credentialsSecret.
    • getCredentialsSecretBytes

      public com.google.protobuf.ByteString getCredentialsSecretBytes()
       Optional. The Resource name of a secret in Secret Manager.
      
       AWS credentials must be stored in Secret Manager in JSON format:
      
       {
       "access_key_id": "ACCESS_KEY_ID",
       "secret_access_key": "SECRET_ACCESS_KEY"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Amazon S3]
       (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or
       [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCredentialsSecretBytes in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The bytes for credentialsSecret.
    • setCredentialsSecret

      public TransferTypes.AwsS3Data.Builder setCredentialsSecret(String value)
       Optional. The Resource name of a secret in Secret Manager.
      
       AWS credentials must be stored in Secret Manager in JSON format:
      
       {
       "access_key_id": "ACCESS_KEY_ID",
       "secret_access_key": "SECRET_ACCESS_KEY"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Amazon S3]
       (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or
       [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The credentialsSecret to set.
      Returns:
      This builder for chaining.
    • clearCredentialsSecret

      public TransferTypes.AwsS3Data.Builder clearCredentialsSecret()
       Optional. The Resource name of a secret in Secret Manager.
      
       AWS credentials must be stored in Secret Manager in JSON format:
      
       {
       "access_key_id": "ACCESS_KEY_ID",
       "secret_access_key": "SECRET_ACCESS_KEY"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Amazon S3]
       (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or
       [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCredentialsSecretBytes

      public TransferTypes.AwsS3Data.Builder setCredentialsSecretBytes(com.google.protobuf.ByteString value)
       Optional. The Resource name of a secret in Secret Manager.
      
       AWS credentials must be stored in Secret Manager in JSON format:
      
       {
       "access_key_id": "ACCESS_KEY_ID",
       "secret_access_key": "SECRET_ACCESS_KEY"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Amazon S3]
       (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or
       [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for credentialsSecret to set.
      Returns:
      This builder for chaining.
    • hasManagedPrivateNetwork

      public boolean hasManagedPrivateNetwork()
       Egress bytes over a Google-managed private network.
       This network is shared between other users of Storage Transfer Service.
       
      bool managed_private_network = 8;
      Specified by:
      hasManagedPrivateNetwork in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      Whether the managedPrivateNetwork field is set.
    • getManagedPrivateNetwork

      public boolean getManagedPrivateNetwork()
       Egress bytes over a Google-managed private network.
       This network is shared between other users of Storage Transfer Service.
       
      bool managed_private_network = 8;
      Specified by:
      getManagedPrivateNetwork in interface TransferTypes.AwsS3DataOrBuilder
      Returns:
      The managedPrivateNetwork.
    • setManagedPrivateNetwork

      public TransferTypes.AwsS3Data.Builder setManagedPrivateNetwork(boolean value)
       Egress bytes over a Google-managed private network.
       This network is shared between other users of Storage Transfer Service.
       
      bool managed_private_network = 8;
      Parameters:
      value - The managedPrivateNetwork to set.
      Returns:
      This builder for chaining.
    • clearManagedPrivateNetwork

      public TransferTypes.AwsS3Data.Builder clearManagedPrivateNetwork()
       Egress bytes over a Google-managed private network.
       This network is shared between other users of Storage Transfer Service.
       
      bool managed_private_network = 8;
      Returns:
      This builder for chaining.