Interface CopyProjectVersionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CopyProjectVersionRequest.Builder,CopyProjectVersionRequest>,RekognitionRequest.Builder,SdkBuilder<CopyProjectVersionRequest.Builder,CopyProjectVersionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CopyProjectVersionRequest
public static interface CopyProjectVersionRequest.Builder extends RekognitionRequest.Builder, SdkPojo, CopyableBuilder<CopyProjectVersionRequest.Builder,CopyProjectVersionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CopyProjectVersionRequest.BuilderdestinationProjectArn(String destinationProjectArn)The ARN of the project in the trusted AWS account that you want to copy the model version to.CopyProjectVersionRequest.BuilderkmsKeyId(String kmsKeyId)The identifier for your AWS Key Management Service key (AWS KMS key).default CopyProjectVersionRequest.BuilderoutputConfig(Consumer<OutputConfig.Builder> outputConfig)The S3 bucket and folder location where the training output for the source model version is placed.CopyProjectVersionRequest.BuilderoutputConfig(OutputConfig outputConfig)The S3 bucket and folder location where the training output for the source model version is placed.CopyProjectVersionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CopyProjectVersionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CopyProjectVersionRequest.BuildersourceProjectArn(String sourceProjectArn)The ARN of the source project in the trusting AWS account.CopyProjectVersionRequest.BuildersourceProjectVersionArn(String sourceProjectVersionArn)The ARN of the model version in the source project that you want to copy to a destination project.CopyProjectVersionRequest.Buildertags(Map<String,String> tags)The key-value tags to assign to the model version.CopyProjectVersionRequest.BuilderversionName(String versionName)A name for the version of the model that's copied to the destination project.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
sourceProjectArn
CopyProjectVersionRequest.Builder sourceProjectArn(String sourceProjectArn)
The ARN of the source project in the trusting AWS account.
- Parameters:
sourceProjectArn- The ARN of the source project in the trusting AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceProjectVersionArn
CopyProjectVersionRequest.Builder sourceProjectVersionArn(String sourceProjectVersionArn)
The ARN of the model version in the source project that you want to copy to a destination project.
- Parameters:
sourceProjectVersionArn- The ARN of the model version in the source project that you want to copy to a destination project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationProjectArn
CopyProjectVersionRequest.Builder destinationProjectArn(String destinationProjectArn)
The ARN of the project in the trusted AWS account that you want to copy the model version to.
- Parameters:
destinationProjectArn- The ARN of the project in the trusted AWS account that you want to copy the model version to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionName
CopyProjectVersionRequest.Builder versionName(String versionName)
A name for the version of the model that's copied to the destination project.
- Parameters:
versionName- A name for the version of the model that's copied to the destination project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
CopyProjectVersionRequest.Builder outputConfig(OutputConfig outputConfig)
The S3 bucket and folder location where the training output for the source model version is placed.
- Parameters:
outputConfig- The S3 bucket and folder location where the training output for the source model version is placed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default CopyProjectVersionRequest.Builder outputConfig(Consumer<OutputConfig.Builder> outputConfig)
The S3 bucket and folder location where the training output for the source model version is placed.
This is a convenience method that creates an instance of theOutputConfig.Builderavoiding the need to create one manually viaOutputConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputConfig(OutputConfig).- Parameters:
outputConfig- a consumer that will call methods onOutputConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
outputConfig(OutputConfig)
-
tags
CopyProjectVersionRequest.Builder tags(Map<String,String> tags)
The key-value tags to assign to the model version.
- Parameters:
tags- The key-value tags to assign to the model version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
CopyProjectVersionRequest.Builder kmsKeyId(String kmsKeyId)
The identifier for your AWS Key Management Service key (AWS KMS key). You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt training results and manifest files written to the output Amazon S3 bucket (
OutputConfig).If you choose to use your own KMS key, you need the following permissions on the KMS key.
-
kms:CreateGrant
-
kms:DescribeKey
-
kms:GenerateDataKey
-
kms:Decrypt
If you don't specify a value for
KmsKeyId, images copied into the service are encrypted using a key that AWS owns and manages.- Parameters:
kmsKeyId- The identifier for your AWS Key Management Service key (AWS KMS key). You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt training results and manifest files written to the output Amazon S3 bucket (OutputConfig).If you choose to use your own KMS key, you need the following permissions on the KMS key.
-
kms:CreateGrant
-
kms:DescribeKey
-
kms:GenerateDataKey
-
kms:Decrypt
If you don't specify a value for
KmsKeyId, images copied into the service are encrypted using a key that AWS owns and manages.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
overrideConfiguration
CopyProjectVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CopyProjectVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-