@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CopyProductRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CopyProductRequest() |
Modifier and Type | Method and Description |
---|---|
CopyProductRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAcceptLanguage()
The language code.
|
List<String> |
getCopyOptions()
The copy options.
|
String |
getIdempotencyToken()
A unique identifier that you provide to ensure idempotency.
|
String |
getSourceProductArn()
The Amazon Resource Name (ARN) of the source product.
|
List<Map<String,String>> |
getSourceProvisioningArtifactIdentifiers()
The identifiers of the provisioning artifacts (also known as versions) of the product to copy.
|
String |
getTargetProductId()
The identifier of the target product.
|
String |
getTargetProductName()
A name for the target product.
|
int |
hashCode() |
void |
setAcceptLanguage(String acceptLanguage)
The language code.
|
void |
setCopyOptions(Collection<String> copyOptions)
The copy options.
|
void |
setIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency.
|
void |
setSourceProductArn(String sourceProductArn)
The Amazon Resource Name (ARN) of the source product.
|
void |
setSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The identifiers of the provisioning artifacts (also known as versions) of the product to copy.
|
void |
setTargetProductId(String targetProductId)
The identifier of the target product.
|
void |
setTargetProductName(String targetProductName)
A name for the target product.
|
String |
toString()
Returns a string representation of this object.
|
CopyProductRequest |
withAcceptLanguage(String acceptLanguage)
The language code.
|
CopyProductRequest |
withCopyOptions(Collection<String> copyOptions)
The copy options.
|
CopyProductRequest |
withCopyOptions(CopyOption... copyOptions)
The copy options.
|
CopyProductRequest |
withCopyOptions(String... copyOptions)
The copy options.
|
CopyProductRequest |
withIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency.
|
CopyProductRequest |
withSourceProductArn(String sourceProductArn)
The Amazon Resource Name (ARN) of the source product.
|
CopyProductRequest |
withSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The identifiers of the provisioning artifacts (also known as versions) of the product to copy.
|
CopyProductRequest |
withSourceProvisioningArtifactIdentifiers(Map<String,String>... sourceProvisioningArtifactIdentifiers)
The identifiers of the provisioning artifacts (also known as versions) of the product to copy.
|
CopyProductRequest |
withTargetProductId(String targetProductId)
The identifier of the target product.
|
CopyProductRequest |
withTargetProductName(String targetProductName)
A name for the target product.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAcceptLanguage(String acceptLanguage)
The language code.
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
jp
- Japanese
zh
- Chinese
public String getAcceptLanguage()
The language code.
jp
- Japanese
zh
- Chinese
jp
- Japanese
zh
- Chinese
public CopyProductRequest withAcceptLanguage(String acceptLanguage)
The language code.
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
jp
- Japanese
zh
- Chinese
public void setSourceProductArn(String sourceProductArn)
The Amazon Resource Name (ARN) of the source product.
sourceProductArn
- The Amazon Resource Name (ARN) of the source product.public String getSourceProductArn()
The Amazon Resource Name (ARN) of the source product.
public CopyProductRequest withSourceProductArn(String sourceProductArn)
The Amazon Resource Name (ARN) of the source product.
sourceProductArn
- The Amazon Resource Name (ARN) of the source product.public void setTargetProductId(String targetProductId)
The identifier of the target product. By default, a new product is created.
targetProductId
- The identifier of the target product. By default, a new product is created.public String getTargetProductId()
The identifier of the target product. By default, a new product is created.
public CopyProductRequest withTargetProductId(String targetProductId)
The identifier of the target product. By default, a new product is created.
targetProductId
- The identifier of the target product. By default, a new product is created.public void setTargetProductName(String targetProductName)
A name for the target product. The default is the name of the source product.
targetProductName
- A name for the target product. The default is the name of the source product.public String getTargetProductName()
A name for the target product. The default is the name of the source product.
public CopyProductRequest withTargetProductName(String targetProductName)
A name for the target product. The default is the name of the source product.
targetProductName
- A name for the target product. The default is the name of the source product.public List<Map<String,String>> getSourceProvisioningArtifactIdentifiers()
The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.
public void setSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.
sourceProvisioningArtifactIdentifiers
- The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default,
all provisioning artifacts are copied.public CopyProductRequest withSourceProvisioningArtifactIdentifiers(Map<String,String>... sourceProvisioningArtifactIdentifiers)
The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.
NOTE: This method appends the values to the existing list (if any). Use
setSourceProvisioningArtifactIdentifiers(java.util.Collection)
or
withSourceProvisioningArtifactIdentifiers(java.util.Collection)
if you want to override the existing
values.
sourceProvisioningArtifactIdentifiers
- The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default,
all provisioning artifacts are copied.public CopyProductRequest withSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.
sourceProvisioningArtifactIdentifiers
- The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default,
all provisioning artifacts are copied.public List<String> getCopyOptions()
The copy options. If the value is CopyTags
, the tags from the source product are copied to the
target product.
CopyTags
, the tags from the source product are copied to
the target product.CopyOption
public void setCopyOptions(Collection<String> copyOptions)
The copy options. If the value is CopyTags
, the tags from the source product are copied to the
target product.
copyOptions
- The copy options. If the value is CopyTags
, the tags from the source product are copied to
the target product.CopyOption
public CopyProductRequest withCopyOptions(String... copyOptions)
The copy options. If the value is CopyTags
, the tags from the source product are copied to the
target product.
NOTE: This method appends the values to the existing list (if any). Use
setCopyOptions(java.util.Collection)
or withCopyOptions(java.util.Collection)
if you want to
override the existing values.
copyOptions
- The copy options. If the value is CopyTags
, the tags from the source product are copied to
the target product.CopyOption
public CopyProductRequest withCopyOptions(Collection<String> copyOptions)
The copy options. If the value is CopyTags
, the tags from the source product are copied to the
target product.
copyOptions
- The copy options. If the value is CopyTags
, the tags from the source product are copied to
the target product.CopyOption
public CopyProductRequest withCopyOptions(CopyOption... copyOptions)
The copy options. If the value is CopyTags
, the tags from the source product are copied to the
target product.
copyOptions
- The copy options. If the value is CopyTags
, the tags from the source product are copied to
the target product.CopyOption
public void setIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
idempotencyToken
- A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the
idempotency token, the same response is returned for each repeated request.public String getIdempotencyToken()
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
public CopyProductRequest withIdempotencyToken(String idempotencyToken)
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
idempotencyToken
- A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the
idempotency token, the same response is returned for each repeated request.public String toString()
toString
in class Object
Object.toString()
public CopyProductRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()