@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImageRecipe extends Object implements Serializable, Cloneable, StructuredPojo
An image recipe.
Constructor and Description |
---|
ImageRecipe() |
Modifier and Type | Method and Description |
---|---|
ImageRecipe |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
ImageRecipe |
clearTagsEntries()
Removes all the entries added into Tags.
|
ImageRecipe |
clone() |
boolean |
equals(Object obj) |
AdditionalInstanceConfiguration |
getAdditionalInstanceConfiguration()
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image
configuration.
|
String |
getArn()
The Amazon Resource Name (ARN) of the image recipe.
|
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
The block device mappings to apply when creating images from this recipe.
|
List<ComponentConfiguration> |
getComponents()
The components that are included in the image recipe.
|
String |
getDateCreated()
The date on which this image recipe was created.
|
String |
getDescription()
The description of the image recipe.
|
String |
getName()
The name of the image recipe.
|
String |
getOwner()
The owner of the image recipe.
|
String |
getParentImage()
The base image of the image recipe.
|
String |
getPlatform()
The platform of the image recipe.
|
Map<String,String> |
getTags()
The tags of the image recipe.
|
String |
getType()
Specifies which type of image is created by the recipe - an AMI or a container image.
|
String |
getVersion()
The version of the image recipe.
|
String |
getWorkingDirectory()
The working directory to be used during build and test workflows.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalInstanceConfiguration(AdditionalInstanceConfiguration additionalInstanceConfiguration)
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image
configuration.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the image recipe.
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings to apply when creating images from this recipe.
|
void |
setComponents(Collection<ComponentConfiguration> components)
The components that are included in the image recipe.
|
void |
setDateCreated(String dateCreated)
The date on which this image recipe was created.
|
void |
setDescription(String description)
The description of the image recipe.
|
void |
setName(String name)
The name of the image recipe.
|
void |
setOwner(String owner)
The owner of the image recipe.
|
void |
setParentImage(String parentImage)
The base image of the image recipe.
|
void |
setPlatform(String platform)
The platform of the image recipe.
|
void |
setTags(Map<String,String> tags)
The tags of the image recipe.
|
void |
setType(String type)
Specifies which type of image is created by the recipe - an AMI or a container image.
|
void |
setVersion(String version)
The version of the image recipe.
|
void |
setWorkingDirectory(String workingDirectory)
The working directory to be used during build and test workflows.
|
String |
toString()
Returns a string representation of this object.
|
ImageRecipe |
withAdditionalInstanceConfiguration(AdditionalInstanceConfiguration additionalInstanceConfiguration)
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image
configuration.
|
ImageRecipe |
withArn(String arn)
The Amazon Resource Name (ARN) of the image recipe.
|
ImageRecipe |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings to apply when creating images from this recipe.
|
ImageRecipe |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mappings to apply when creating images from this recipe.
|
ImageRecipe |
withComponents(Collection<ComponentConfiguration> components)
The components that are included in the image recipe.
|
ImageRecipe |
withComponents(ComponentConfiguration... components)
The components that are included in the image recipe.
|
ImageRecipe |
withDateCreated(String dateCreated)
The date on which this image recipe was created.
|
ImageRecipe |
withDescription(String description)
The description of the image recipe.
|
ImageRecipe |
withName(String name)
The name of the image recipe.
|
ImageRecipe |
withOwner(String owner)
The owner of the image recipe.
|
ImageRecipe |
withParentImage(String parentImage)
The base image of the image recipe.
|
ImageRecipe |
withPlatform(Platform platform)
The platform of the image recipe.
|
ImageRecipe |
withPlatform(String platform)
The platform of the image recipe.
|
ImageRecipe |
withTags(Map<String,String> tags)
The tags of the image recipe.
|
ImageRecipe |
withType(ImageType type)
Specifies which type of image is created by the recipe - an AMI or a container image.
|
ImageRecipe |
withType(String type)
Specifies which type of image is created by the recipe - an AMI or a container image.
|
ImageRecipe |
withVersion(String version)
The version of the image recipe.
|
ImageRecipe |
withWorkingDirectory(String workingDirectory)
The working directory to be used during build and test workflows.
|
public void setArn(String arn)
The Amazon Resource Name (ARN) of the image recipe.
arn
- The Amazon Resource Name (ARN) of the image recipe.public String getArn()
The Amazon Resource Name (ARN) of the image recipe.
public ImageRecipe withArn(String arn)
The Amazon Resource Name (ARN) of the image recipe.
arn
- The Amazon Resource Name (ARN) of the image recipe.public void setType(String type)
Specifies which type of image is created by the recipe - an AMI or a container image.
type
- Specifies which type of image is created by the recipe - an AMI or a container image.ImageType
public String getType()
Specifies which type of image is created by the recipe - an AMI or a container image.
ImageType
public ImageRecipe withType(String type)
Specifies which type of image is created by the recipe - an AMI or a container image.
type
- Specifies which type of image is created by the recipe - an AMI or a container image.ImageType
public ImageRecipe withType(ImageType type)
Specifies which type of image is created by the recipe - an AMI or a container image.
type
- Specifies which type of image is created by the recipe - an AMI or a container image.ImageType
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 ImageRecipe 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 ImageRecipe withDescription(String description)
The description of the image recipe.
description
- The description of the image recipe.public void setPlatform(String platform)
The platform of the image recipe.
platform
- The platform of the image recipe.Platform
public String getPlatform()
The platform of the image recipe.
Platform
public ImageRecipe withPlatform(String platform)
The platform of the image recipe.
platform
- The platform of the image recipe.Platform
public ImageRecipe withPlatform(Platform platform)
The platform of the image recipe.
platform
- The platform of the image recipe.Platform
public void setOwner(String owner)
The owner of the image recipe.
owner
- The owner of the image recipe.public String getOwner()
The owner of the image recipe.
public ImageRecipe withOwner(String owner)
The owner of the image recipe.
owner
- The owner of the image recipe.public void setVersion(String version)
The version of the image recipe.
version
- The version of the image recipe.public String getVersion()
The version of the image recipe.
public ImageRecipe withVersion(String version)
The version of the image recipe.
version
- The version of the image recipe.public List<ComponentConfiguration> getComponents()
The components that are included in the image recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
public void setComponents(Collection<ComponentConfiguration> components)
The components that are included in the image recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
components
- The components that are included in the image recipe. Recipes require a minimum of one build component,
and can have a maximum of 20 build and test components in any combination.public ImageRecipe withComponents(ComponentConfiguration... components)
The components that are included in the image recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
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 that are included in the image recipe. Recipes require a minimum of one build component,
and can have a maximum of 20 build and test components in any combination.public ImageRecipe withComponents(Collection<ComponentConfiguration> components)
The components that are included in the image recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
components
- The components that are included in the image recipe. Recipes require a minimum of one build component,
and can have a maximum of 20 build and test components in any combination.public void setParentImage(String parentImage)
The base image of the image recipe.
parentImage
- The base image of the image recipe.public String getParentImage()
The base image of the image recipe.
public ImageRecipe withParentImage(String parentImage)
The base image of the image recipe.
parentImage
- The base image of the image recipe.public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
The block device mappings to apply when creating images from this recipe.
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings to apply when creating images from this recipe.
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe.public ImageRecipe withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
The block device mappings to apply when creating images from this 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 to apply when creating images from this recipe.public ImageRecipe withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
The block device mappings to apply when creating images from this recipe.
blockDeviceMappings
- The block device mappings to apply when creating images from this recipe.public void setDateCreated(String dateCreated)
The date on which this image recipe was created.
dateCreated
- The date on which this image recipe was created.public String getDateCreated()
The date on which this image recipe was created.
public ImageRecipe withDateCreated(String dateCreated)
The date on which this image recipe was created.
dateCreated
- The date on which this image recipe was created.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 ImageRecipe withTags(Map<String,String> tags)
The tags of the image recipe.
tags
- The tags of the image recipe.public ImageRecipe addTagsEntry(String key, String value)
public ImageRecipe clearTagsEntries()
public void setWorkingDirectory(String workingDirectory)
The working directory to be used during build and test workflows.
workingDirectory
- The working directory to be used during build and test workflows.public String getWorkingDirectory()
The working directory to be used during build and test workflows.
public ImageRecipe withWorkingDirectory(String workingDirectory)
The working directory to be used during build and test workflows.
workingDirectory
- The working directory to be used during build and test workflows.public void setAdditionalInstanceConfiguration(AdditionalInstanceConfiguration additionalInstanceConfiguration)
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.
additionalInstanceConfiguration
- Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your
image configuration. Instance configuration adds a layer of control over those instances. You can define
settings and add scripts to run when an instance is launched from your AMI.public AdditionalInstanceConfiguration getAdditionalInstanceConfiguration()
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.
public ImageRecipe withAdditionalInstanceConfiguration(AdditionalInstanceConfiguration additionalInstanceConfiguration)
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when an instance is launched from your AMI.
additionalInstanceConfiguration
- Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your
image configuration. Instance configuration adds a layer of control over those instances. You can define
settings and add scripts to run when an instance is launched from your AMI.public String toString()
toString
in class Object
Object.toString()
public ImageRecipe clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.