@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 token to disambiguate duplicate requests.
|
String |
getSourceProductArn()
The Amazon Resource Name (ARN) of the source product.
|
List<Map<String,String>> |
getSourceProvisioningArtifactIdentifiers()
The IDs of the product versions to copy.
|
String |
getTargetProductId()
The ID 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 token to disambiguate duplicate requests.
|
void |
setSourceProductArn(String sourceProductArn)
The Amazon Resource Name (ARN) of the source product.
|
void |
setSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The IDs of the product versions to copy.
|
void |
setTargetProductId(String targetProductId)
The ID of the target product.
|
void |
setTargetProductName(String targetProductName)
A name for the target product.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 token to disambiguate duplicate requests.
|
CopyProductRequest |
withSourceProductArn(String sourceProductArn)
The Amazon Resource Name (ARN) of the source product.
|
CopyProductRequest |
withSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The IDs of the product versions to copy.
|
CopyProductRequest |
withSourceProvisioningArtifactIdentifiers(Map<String,String>... sourceProvisioningArtifactIdentifiers)
The IDs of the product versions to copy.
|
CopyProductRequest |
withTargetProductId(String targetProductId)
The ID 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.
en
- English (default)
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
en
- English (default)
jp
- Japanese
zh
- Chinese
public String getAcceptLanguage()
The language code.
en
- English (default)
jp
- Japanese
zh
- Chinese
en
- English (default)
jp
- Japanese
zh
- Chinese
public CopyProductRequest withAcceptLanguage(String acceptLanguage)
The language code.
en
- English (default)
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
en
- English (default)
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 ID of the target product. By default, a new product is created.
targetProductId
- The ID of the target product. By default, a new product is created.public String getTargetProductId()
The ID of the target product. By default, a new product is created.
public CopyProductRequest withTargetProductId(String targetProductId)
The ID of the target product. By default, a new product is created.
targetProductId
- The ID 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 IDs of the product versions to copy. By default, all provisioning artifacts are copied.
public void setSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The IDs of the product versions to copy. By default, all provisioning artifacts are copied.
sourceProvisioningArtifactIdentifiers
- The IDs of the product versions to copy. By default, all provisioning artifacts are copied.public CopyProductRequest withSourceProvisioningArtifactIdentifiers(Map<String,String>... sourceProvisioningArtifactIdentifiers)
The IDs of the product versions 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 IDs of the product versions to copy. By default, all provisioning artifacts are copied.public CopyProductRequest withSourceProvisioningArtifactIdentifiers(Collection<Map<String,String>> sourceProvisioningArtifactIdentifiers)
The IDs of the product versions to copy. By default, all provisioning artifacts are copied.
sourceProvisioningArtifactIdentifiers
- The IDs of the product versions 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 token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that you also specify a different idempotency token for each request.
idempotencyToken
- A token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that
you also specify a different idempotency token for each request.public String getIdempotencyToken()
A token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that you also specify a different idempotency token for each request.
public CopyProductRequest withIdempotencyToken(String idempotencyToken)
A token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that you also specify a different idempotency token for each request.
idempotencyToken
- A token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that
you also specify a different idempotency token for each request.public String toString()
toString
in class Object
Object.toString()
public CopyProductRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.