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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Input only.Required.Optional.Optional.Egress bytes over a Google-managed private network.Root path to transfer objects.The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`.Input only.Input only.Input only.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanEgress bytes over a Google-managed private network.getPath()Root path to transfer objects.com.google.protobuf.ByteStringRoot path to transfer objects.The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`.com.google.protobuf.ByteStringThe Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`.booleanInput only.booleanEgress bytes over a Google-managed private network.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanInput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TransferTypes.AwsS3Data other) Input only.setAwsAccessKey(TransferTypes.AwsAccessKey.Builder builderForValue) Input only.setBucketName(String value) Required.setBucketNameBytes(com.google.protobuf.ByteString value) Required.setCloudfrontDomain(String value) Optional.setCloudfrontDomainBytes(com.google.protobuf.ByteString value) Optional.setCredentialsSecret(String value) Optional.setCredentialsSecretBytes(com.google.protobuf.ByteString value) Optional.setManagedPrivateNetwork(boolean value) Egress bytes over a Google-managed private network.Root path to transfer objects.setPathBytes(com.google.protobuf.ByteString value) Root path to transfer objects.setRoleArn(String value) The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`.setRoleArnBytes(com.google.protobuf.ByteString value) The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TransferTypes.AwsS3Data.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransferTypes.AwsS3Data.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransferTypes.AwsS3Data.Builder>- Throws:
IOException
-
getPrivateNetworkCase
- Specified by:
getPrivateNetworkCasein interfaceTransferTypes.AwsS3DataOrBuilder
-
clearPrivateNetwork
-
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:
getBucketNamein interfaceTransferTypes.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:
getBucketNameBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for bucketName.
-
setBucketName
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
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
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:
hasAwsAccessKeyin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- Whether the awsAccessKey field is set.
-
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:
getAwsAccessKeyin interfaceTransferTypes.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
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
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
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:
getAwsAccessKeyOrBuilderin interfaceTransferTypes.AwsS3DataOrBuilder
-
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:
getPathin interfaceTransferTypes.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:
getPathBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for path.
-
setPath
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
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
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
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:
getRoleArnin interfaceTransferTypes.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:
getRoleArnBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for roleArn.
-
setRoleArn
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
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
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
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:
getCloudfrontDomainin interfaceTransferTypes.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:
getCloudfrontDomainBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for cloudfrontDomain.
-
setCloudfrontDomain
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
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
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:
getCredentialsSecretin interfaceTransferTypes.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:
getCredentialsSecretBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for credentialsSecret.
-
setCredentialsSecret
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
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:
hasManagedPrivateNetworkin interfaceTransferTypes.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:
getManagedPrivateNetworkin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The managedPrivateNetwork.
-
setManagedPrivateNetwork
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
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.
-