@Generated(value="software.amazon.awssdk:codegen") public final class CopyProjectVersionRequest extends RekognitionRequest implements ToCopyableBuilder<CopyProjectVersionRequest.Builder,CopyProjectVersionRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CopyProjectVersionRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CopyProjectVersionRequest.Builder |
builder() |
String |
destinationProjectArn()
The ARN of the project in the trusted AWS account that you want to copy the model version to.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
kmsKeyId()
The identifier for your AWS Key Management Service key (AWS KMS key).
|
OutputConfig |
outputConfig()
The S3 bucket and folder location where the training output for the source model version is placed.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CopyProjectVersionRequest.Builder> |
serializableBuilderClass() |
String |
sourceProjectArn()
The ARN of the source project in the trusting AWS account.
|
String |
sourceProjectVersionArn()
The ARN of the model version in the source project that you want to copy to a destination project.
|
Map<String,String> |
tags()
The key-value tags to assign to the model version.
|
CopyProjectVersionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
versionName()
A name for the version of the model that's copied to the destination project.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String sourceProjectArn()
The ARN of the source project in the trusting AWS account.
public final String sourceProjectVersionArn()
The ARN of the model version in the source project that you want to copy to a destination project.
public final String destinationProjectArn()
The ARN of the project in the trusted AWS account that you want to copy the model version to.
public final String versionName()
A name for the version of the model that's copied to the destination project.
public final OutputConfig outputConfig()
The S3 bucket and folder location where the training output for the source model version is placed.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
The key-value tags to assign to the model version.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final 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.
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.
public CopyProjectVersionRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CopyProjectVersionRequest.Builder,CopyProjectVersionRequest>toBuilder in class RekognitionRequestpublic static CopyProjectVersionRequest.Builder builder()
public static Class<? extends CopyProjectVersionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.