@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateImageRecipeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateImageRecipeRequest() |
Modifier and Type | Method and Description |
---|---|
CreateImageRecipeRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateImageRecipeRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateImageRecipeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
The block device mappings of the image recipe.
|
String |
getClientToken()
The idempotency token used to make this request idempotent.
|
List<ComponentConfiguration> |
getComponents()
The components of the image recipe.
|
String |
getDescription()
The description of the image recipe.
|
String |
getName()
The name of the image recipe.
|
String |
getParentImage()
The parent image of the image recipe.
|
String |
getSemanticVersion()
The semantic version of the image recipe.
|
Map<String,String> |
getTags()
The tags of the image recipe.
|
int |
hashCode() |
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings of the image recipe.
|
void |
setClientToken(String clientToken)
The idempotency token used to make this request idempotent.
|
void |
setComponents(Collection<ComponentConfiguration> components)
The components of the image recipe.
|
void |
setDescription(String description)
The description of the image recipe.
|
void |
setName(String name)
The name of the image recipe.
|
void |
setParentImage(String parentImage)
The parent image of the image recipe.
|
void |
setSemanticVersion(String semanticVersion)
The semantic version of the image recipe.
|
void |
setTags(Map<String,String> tags)
The tags of the image recipe.
|
String |
toString()
Returns a string representation of this object.
|
CreateImageRecipeRequest |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings of the image recipe.
|
CreateImageRecipeRequest |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mappings of the image recipe.
|
CreateImageRecipeRequest |
withClientToken(String clientToken)
The idempotency token used to make this request idempotent.
|
CreateImageRecipeRequest |
withComponents(Collection<ComponentConfiguration> components)
The components of the image recipe.
|
CreateImageRecipeRequest |
withComponents(ComponentConfiguration... components)
The components of the image recipe.
|
CreateImageRecipeRequest |
withDescription(String description)
The description of the image recipe.
|
CreateImageRecipeRequest |
withName(String name)
The name of the image recipe.
|
CreateImageRecipeRequest |
withParentImage(String parentImage)
The parent image of the image recipe.
|
CreateImageRecipeRequest |
withSemanticVersion(String semanticVersion)
The semantic version of the image recipe.
|
CreateImageRecipeRequest |
withTags(Map<String,String> tags)
The tags of the image recipe.
|
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 setName(String name)
The name of the image recipe.
name
- The name of the image recipe.public String getName()
The name of the image recipe.
public CreateImageRecipeRequest withName(String name)
The name of the image recipe.
name
- The name of the image recipe.public void setDescription(String description)
The description of the image recipe.
description
- The description of the image recipe.public String getDescription()
The description of the image recipe.
public CreateImageRecipeRequest withDescription(String description)
The description of the image recipe.
description
- The description of the image recipe.public void setSemanticVersion(String semanticVersion)
The semantic version of the image recipe.
semanticVersion
- The semantic version of the image recipe.public String getSemanticVersion()
The semantic version of the image recipe.
public CreateImageRecipeRequest withSemanticVersion(String semanticVersion)
The semantic version of the image recipe.
semanticVersion
- The semantic version of the image recipe.public List<ComponentConfiguration> getComponents()
The components of the image recipe.
public void setComponents(Collection<ComponentConfiguration> components)
The components of the image recipe.
components
- The components of the image recipe.public CreateImageRecipeRequest withComponents(ComponentConfiguration... components)
The components of the image recipe.
NOTE: This method appends the values to the existing list (if any). Use
setComponents(java.util.Collection)
or withComponents(java.util.Collection)
if you want to
override the existing values.
components
- The components of the image recipe.public CreateImageRecipeRequest withComponents(Collection<ComponentConfiguration> components)
The components of the image recipe.
components
- The components of the image recipe.public void setParentImage(String parentImage)
The parent image of the image recipe. The value of the string can be the ARN of the parent image or an AMI ID.
The format for the ARN follows this example:
arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x
. The ARN
ends with /20xx.x.x
, which communicates to EC2 Image Builder that you want to use the latest AMI
created in 20xx (year). You can provide the specific version that you want to use, or you can use a wildcard in
all of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, and the AMI must
be in the same Region in which you are using Image Builder.
parentImage
- The parent image of the image recipe. The value of the string can be the ARN of the parent image or an AMI
ID. The format for the ARN follows this example:
arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x
.
The ARN ends with /20xx.x.x
, which communicates to EC2 Image Builder that you want to use the
latest AMI created in 20xx (year). You can provide the specific version that you want to use, or you can
use a wildcard in all of the fields. If you enter an AMI ID for the string value, you must have access to
the AMI, and the AMI must be in the same Region in which you are using Image Builder.public String getParentImage()
The parent image of the image recipe. The value of the string can be the ARN of the parent image or an AMI ID.
The format for the ARN follows this example:
arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x
. The ARN
ends with /20xx.x.x
, which communicates to EC2 Image Builder that you want to use the latest AMI
created in 20xx (year). You can provide the specific version that you want to use, or you can use a wildcard in
all of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, and the AMI must
be in the same Region in which you are using Image Builder.
arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x
.
The ARN ends with /20xx.x.x
, which communicates to EC2 Image Builder that you want to use
the latest AMI created in 20xx (year). You can provide the specific version that you want to use, or you
can use a wildcard in all of the fields. If you enter an AMI ID for the string value, you must have
access to the AMI, and the AMI must be in the same Region in which you are using Image Builder.public CreateImageRecipeRequest withParentImage(String parentImage)
The parent image of the image recipe. The value of the string can be the ARN of the parent image or an AMI ID.
The format for the ARN follows this example:
arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x
. The ARN
ends with /20xx.x.x
, which communicates to EC2 Image Builder that you want to use the latest AMI
created in 20xx (year). You can provide the specific version that you want to use, or you can use a wildcard in
all of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, and the AMI must
be in the same Region in which you are using Image Builder.
parentImage
- The parent image of the image recipe. The value of the string can be the ARN of the parent image or an AMI
ID. The format for the ARN follows this example:
arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/2019.x.x
.
The ARN ends with /20xx.x.x
, which communicates to EC2 Image Builder that you want to use the
latest AMI created in 20xx (year). You can provide the specific version that you want to use, or you can
use a wildcard in all of the fields. If you enter an AMI ID for the string value, you must have access to
the AMI, and the AMI must be in the same Region in which you are using Image Builder.public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
The block device mappings of the image recipe.
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings of the image recipe.
blockDeviceMappings
- The block device mappings of the image recipe.public CreateImageRecipeRequest withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mappings of the image recipe.
NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)
or withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- The block device mappings of the image recipe.public CreateImageRecipeRequest withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings of the image recipe.
blockDeviceMappings
- The block device mappings of the image recipe.public Map<String,String> getTags()
The tags of the image recipe.
public void setTags(Map<String,String> tags)
The tags of the image recipe.
tags
- The tags of the image recipe.public CreateImageRecipeRequest withTags(Map<String,String> tags)
The tags of the image recipe.
tags
- The tags of the image recipe.public CreateImageRecipeRequest addTagsEntry(String key, String value)
public CreateImageRecipeRequest clearTagsEntries()
public void setClientToken(String clientToken)
The idempotency token used to make this request idempotent.
clientToken
- The idempotency token used to make this request idempotent.public String getClientToken()
The idempotency token used to make this request idempotent.
public CreateImageRecipeRequest withClientToken(String clientToken)
The idempotency token used to make this request idempotent.
clientToken
- The idempotency token used to make this request idempotent.public String toString()
toString
in class Object
Object.toString()
public CreateImageRecipeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.