Interface CreateProjectVersionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateProjectVersionRequest.Builder,CreateProjectVersionRequest>,RekognitionRequest.Builder,SdkBuilder<CreateProjectVersionRequest.Builder,CreateProjectVersionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateProjectVersionRequest
public static interface CreateProjectVersionRequest.Builder extends RekognitionRequest.Builder, SdkPojo, CopyableBuilder<CreateProjectVersionRequest.Builder,CreateProjectVersionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateProjectVersionRequest.BuilderfeatureConfig(Consumer<CustomizationFeatureConfig.Builder> featureConfig)Feature-specific configuration of the training job.CreateProjectVersionRequest.BuilderfeatureConfig(CustomizationFeatureConfig featureConfig)Feature-specific configuration of the training job.CreateProjectVersionRequest.BuilderkmsKeyId(String kmsKeyId)The identifier for your AWS Key Management Service key (AWS KMS key).default CreateProjectVersionRequest.BuilderoutputConfig(Consumer<OutputConfig.Builder> outputConfig)The Amazon S3 bucket location to store the results of training.CreateProjectVersionRequest.BuilderoutputConfig(OutputConfig outputConfig)The Amazon S3 bucket location to store the results of training.CreateProjectVersionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateProjectVersionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateProjectVersionRequest.BuilderprojectArn(String projectArn)The ARN of the Amazon Rekognition project that will manage the project version you want to train.CreateProjectVersionRequest.Buildertags(Map<String,String> tags)A set of tags (key-value pairs) that you want to attach to the project version.default CreateProjectVersionRequest.BuildertestingData(Consumer<TestingData.Builder> testingData)Specifies an external manifest that the service uses to test the project version.CreateProjectVersionRequest.BuildertestingData(TestingData testingData)Specifies an external manifest that the service uses to test the project version.default CreateProjectVersionRequest.BuildertrainingData(Consumer<TrainingData.Builder> trainingData)Specifies an external manifest that the services uses to train the project version.CreateProjectVersionRequest.BuildertrainingData(TrainingData trainingData)Specifies an external manifest that the services uses to train the project version.CreateProjectVersionRequest.BuilderversionDescription(String versionDescription)A description applied to the project version being created.CreateProjectVersionRequest.BuilderversionName(String versionName)A name for the version of the project version.-
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
-
projectArn
CreateProjectVersionRequest.Builder projectArn(String projectArn)
The ARN of the Amazon Rekognition project that will manage the project version you want to train.
- Parameters:
projectArn- The ARN of the Amazon Rekognition project that will manage the project version you want to train.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionName
CreateProjectVersionRequest.Builder versionName(String versionName)
A name for the version of the project version. This value must be unique.
- Parameters:
versionName- A name for the version of the project version. This value must be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
CreateProjectVersionRequest.Builder outputConfig(OutputConfig outputConfig)
The Amazon S3 bucket location to store the results of training. The bucket can be any S3 bucket in your AWS account. You need
s3:PutObjectpermission on the bucket.- Parameters:
outputConfig- The Amazon S3 bucket location to store the results of training. The bucket can be any S3 bucket in your AWS account. You needs3:PutObjectpermission on the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputConfig
default CreateProjectVersionRequest.Builder outputConfig(Consumer<OutputConfig.Builder> outputConfig)
The Amazon S3 bucket location to store the results of training. The bucket can be any S3 bucket in your AWS account. You need
This is a convenience method that creates an instance of thes3:PutObjectpermission on the bucket.OutputConfig.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)
-
trainingData
CreateProjectVersionRequest.Builder trainingData(TrainingData trainingData)
Specifies an external manifest that the services uses to train the project version. If you specify
TrainingDatayou must also specifyTestingData. The project must not have any associated datasets.- Parameters:
trainingData- Specifies an external manifest that the services uses to train the project version. If you specifyTrainingDatayou must also specifyTestingData. The project must not have any associated datasets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingData
default CreateProjectVersionRequest.Builder trainingData(Consumer<TrainingData.Builder> trainingData)
Specifies an external manifest that the services uses to train the project version. If you specify
This is a convenience method that creates an instance of theTrainingDatayou must also specifyTestingData. The project must not have any associated datasets.TrainingData.Builderavoiding the need to create one manually viaTrainingData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrainingData(TrainingData).- Parameters:
trainingData- a consumer that will call methods onTrainingData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
trainingData(TrainingData)
-
testingData
CreateProjectVersionRequest.Builder testingData(TestingData testingData)
Specifies an external manifest that the service uses to test the project version. If you specify
TestingDatayou must also specifyTrainingData. The project must not have any associated datasets.- Parameters:
testingData- Specifies an external manifest that the service uses to test the project version. If you specifyTestingDatayou must also specifyTrainingData. The project must not have any associated datasets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testingData
default CreateProjectVersionRequest.Builder testingData(Consumer<TestingData.Builder> testingData)
Specifies an external manifest that the service uses to test the project version. If you specify
This is a convenience method that creates an instance of theTestingDatayou must also specifyTrainingData. The project must not have any associated datasets.TestingData.Builderavoiding the need to create one manually viaTestingData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totestingData(TestingData).- Parameters:
testingData- a consumer that will call methods onTestingData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
testingData(TestingData)
-
tags
CreateProjectVersionRequest.Builder tags(Map<String,String> tags)
A set of tags (key-value pairs) that you want to attach to the project version.
- Parameters:
tags- A set of tags (key-value pairs) that you want to attach to the project version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
CreateProjectVersionRequest.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 images, test images, and manifest files copied into the service for the project version. Your source images are unaffected. The key is also 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 images, test images, and manifest files copied into the service for the project version. Your source images are unaffected. The key is also 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.
-
-
versionDescription
CreateProjectVersionRequest.Builder versionDescription(String versionDescription)
A description applied to the project version being created.
- Parameters:
versionDescription- A description applied to the project version being created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featureConfig
CreateProjectVersionRequest.Builder featureConfig(CustomizationFeatureConfig featureConfig)
Feature-specific configuration of the training job. If the job configuration does not match the feature type associated with the project, an InvalidParameterException is returned.
- Parameters:
featureConfig- Feature-specific configuration of the training job. If the job configuration does not match the feature type associated with the project, an InvalidParameterException is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
featureConfig
default CreateProjectVersionRequest.Builder featureConfig(Consumer<CustomizationFeatureConfig.Builder> featureConfig)
Feature-specific configuration of the training job. If the job configuration does not match the feature type associated with the project, an InvalidParameterException is returned.
This is a convenience method that creates an instance of theCustomizationFeatureConfig.Builderavoiding the need to create one manually viaCustomizationFeatureConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofeatureConfig(CustomizationFeatureConfig).- Parameters:
featureConfig- a consumer that will call methods onCustomizationFeatureConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
featureConfig(CustomizationFeatureConfig)
-
overrideConfiguration
CreateProjectVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateProjectVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-