@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Defines a custom base AMI and block device mapping configurations of an instance used for building and testing container images.
Constructor and Description |
---|
InstanceConfiguration() |
Modifier and Type | Method and Description |
---|---|
InstanceConfiguration |
clone() |
boolean |
equals(Object obj) |
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
String |
getImage()
The AMI ID to use as the base image for a container build and test instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
void |
setImage(String image)
The AMI ID to use as the base image for a container build and test instance.
|
String |
toString()
Returns a string representation of this object.
|
InstanceConfiguration |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
InstanceConfiguration |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
|
InstanceConfiguration |
withImage(String image)
The AMI ID to use as the base image for a container build and test instance.
|
public void setImage(String image)
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
image
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image
Builder will use the appropriate ECS-optimized AMI as a base image.public String getImage()
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
public InstanceConfiguration withImage(String image)
The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
image
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image
Builder will use the appropriate ECS-optimized AMI as a base image.public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
Defines the block devices to attach for building an instance from this Image Builder AMI.
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
blockDeviceMappings
- Defines the block devices to attach for building an instance from this Image Builder AMI.public InstanceConfiguration withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
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
- Defines the block devices to attach for building an instance from this Image Builder AMI.public InstanceConfiguration withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Defines the block devices to attach for building an instance from this Image Builder AMI.
blockDeviceMappings
- Defines the block devices to attach for building an instance from this Image Builder AMI.public String toString()
toString
in class Object
Object.toString()
public InstanceConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.