@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InfrastructureConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Details of the infrastructure configuration.
Constructor and Description |
---|
InfrastructureConfiguration() |
Modifier and Type | Method and Description |
---|---|
InfrastructureConfiguration |
addResourceTagsEntry(String key,
String value)
Add a single ResourceTags entry
|
InfrastructureConfiguration |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
InfrastructureConfiguration |
clearResourceTagsEntries()
Removes all the entries added into ResourceTags.
|
InfrastructureConfiguration |
clearTagsEntries()
Removes all the entries added into Tags.
|
InfrastructureConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the infrastructure configuration.
|
String |
getDateCreated()
The date on which the infrastructure configuration was created.
|
String |
getDateUpdated()
The date on which the infrastructure configuration was last updated.
|
String |
getDescription()
The description of the infrastructure configuration.
|
InstanceMetadataOptions |
getInstanceMetadataOptions()
The instance metadata option settings for the infrastructure configuration.
|
String |
getInstanceProfileName()
The instance profile of the infrastructure configuration.
|
List<String> |
getInstanceTypes()
The instance types of the infrastructure configuration.
|
String |
getKeyPair()
The Amazon EC2 key pair of the infrastructure configuration.
|
Logging |
getLogging()
The logging configuration of the infrastructure configuration.
|
String |
getName()
The name of the infrastructure configuration.
|
Map<String,String> |
getResourceTags()
The tags attached to the resource created by Image Builder.
|
List<String> |
getSecurityGroupIds()
The security group IDs of the infrastructure configuration.
|
String |
getSnsTopicArn()
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
|
String |
getSubnetId()
The subnet ID of the infrastructure configuration.
|
Map<String,String> |
getTags()
The tags of the infrastructure configuration.
|
Boolean |
getTerminateInstanceOnFailure()
The terminate instance on failure configuration of the infrastructure configuration.
|
int |
hashCode() |
Boolean |
isTerminateInstanceOnFailure()
The terminate instance on failure configuration of the infrastructure configuration.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the infrastructure configuration.
|
void |
setDateCreated(String dateCreated)
The date on which the infrastructure configuration was created.
|
void |
setDateUpdated(String dateUpdated)
The date on which the infrastructure configuration was last updated.
|
void |
setDescription(String description)
The description of the infrastructure configuration.
|
void |
setInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata option settings for the infrastructure configuration.
|
void |
setInstanceProfileName(String instanceProfileName)
The instance profile of the infrastructure configuration.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration.
|
void |
setKeyPair(String keyPair)
The Amazon EC2 key pair of the infrastructure configuration.
|
void |
setLogging(Logging logging)
The logging configuration of the infrastructure configuration.
|
void |
setName(String name)
The name of the infrastructure configuration.
|
void |
setResourceTags(Map<String,String> resourceTags)
The tags attached to the resource created by Image Builder.
|
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs of the infrastructure configuration.
|
void |
setSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
|
void |
setSubnetId(String subnetId)
The subnet ID of the infrastructure configuration.
|
void |
setTags(Map<String,String> tags)
The tags of the infrastructure configuration.
|
void |
setTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure configuration of the infrastructure configuration.
|
String |
toString()
Returns a string representation of this object.
|
InfrastructureConfiguration |
withArn(String arn)
The Amazon Resource Name (ARN) of the infrastructure configuration.
|
InfrastructureConfiguration |
withDateCreated(String dateCreated)
The date on which the infrastructure configuration was created.
|
InfrastructureConfiguration |
withDateUpdated(String dateUpdated)
The date on which the infrastructure configuration was last updated.
|
InfrastructureConfiguration |
withDescription(String description)
The description of the infrastructure configuration.
|
InfrastructureConfiguration |
withInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata option settings for the infrastructure configuration.
|
InfrastructureConfiguration |
withInstanceProfileName(String instanceProfileName)
The instance profile of the infrastructure configuration.
|
InfrastructureConfiguration |
withInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration.
|
InfrastructureConfiguration |
withInstanceTypes(String... instanceTypes)
The instance types of the infrastructure configuration.
|
InfrastructureConfiguration |
withKeyPair(String keyPair)
The Amazon EC2 key pair of the infrastructure configuration.
|
InfrastructureConfiguration |
withLogging(Logging logging)
The logging configuration of the infrastructure configuration.
|
InfrastructureConfiguration |
withName(String name)
The name of the infrastructure configuration.
|
InfrastructureConfiguration |
withResourceTags(Map<String,String> resourceTags)
The tags attached to the resource created by Image Builder.
|
InfrastructureConfiguration |
withSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs of the infrastructure configuration.
|
InfrastructureConfiguration |
withSecurityGroupIds(String... securityGroupIds)
The security group IDs of the infrastructure configuration.
|
InfrastructureConfiguration |
withSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
|
InfrastructureConfiguration |
withSubnetId(String subnetId)
The subnet ID of the infrastructure configuration.
|
InfrastructureConfiguration |
withTags(Map<String,String> tags)
The tags of the infrastructure configuration.
|
InfrastructureConfiguration |
withTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure configuration of the infrastructure configuration.
|
public void setArn(String arn)
The Amazon Resource Name (ARN) of the infrastructure configuration.
arn
- The Amazon Resource Name (ARN) of the infrastructure configuration.public String getArn()
The Amazon Resource Name (ARN) of the infrastructure configuration.
public InfrastructureConfiguration withArn(String arn)
The Amazon Resource Name (ARN) of the infrastructure configuration.
arn
- The Amazon Resource Name (ARN) of the infrastructure configuration.public void setName(String name)
The name of the infrastructure configuration.
name
- The name of the infrastructure configuration.public String getName()
The name of the infrastructure configuration.
public InfrastructureConfiguration withName(String name)
The name of the infrastructure configuration.
name
- The name of the infrastructure configuration.public void setDescription(String description)
The description of the infrastructure configuration.
description
- The description of the infrastructure configuration.public String getDescription()
The description of the infrastructure configuration.
public InfrastructureConfiguration withDescription(String description)
The description of the infrastructure configuration.
description
- The description of the infrastructure configuration.public List<String> getInstanceTypes()
The instance types of the infrastructure configuration.
public void setInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration.
instanceTypes
- The instance types of the infrastructure configuration.public InfrastructureConfiguration withInstanceTypes(String... instanceTypes)
The instance types of the infrastructure configuration.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceTypes(java.util.Collection)
or withInstanceTypes(java.util.Collection)
if you want
to override the existing values.
instanceTypes
- The instance types of the infrastructure configuration.public InfrastructureConfiguration withInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration.
instanceTypes
- The instance types of the infrastructure configuration.public void setInstanceProfileName(String instanceProfileName)
The instance profile of the infrastructure configuration.
instanceProfileName
- The instance profile of the infrastructure configuration.public String getInstanceProfileName()
The instance profile of the infrastructure configuration.
public InfrastructureConfiguration withInstanceProfileName(String instanceProfileName)
The instance profile of the infrastructure configuration.
instanceProfileName
- The instance profile of the infrastructure configuration.public List<String> getSecurityGroupIds()
The security group IDs of the infrastructure configuration.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs of the infrastructure configuration.
securityGroupIds
- The security group IDs of the infrastructure configuration.public InfrastructureConfiguration withSecurityGroupIds(String... securityGroupIds)
The security group IDs of the infrastructure configuration.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- The security group IDs of the infrastructure configuration.public InfrastructureConfiguration withSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs of the infrastructure configuration.
securityGroupIds
- The security group IDs of the infrastructure configuration.public void setSubnetId(String subnetId)
The subnet ID of the infrastructure configuration.
subnetId
- The subnet ID of the infrastructure configuration.public String getSubnetId()
The subnet ID of the infrastructure configuration.
public InfrastructureConfiguration withSubnetId(String subnetId)
The subnet ID of the infrastructure configuration.
subnetId
- The subnet ID of the infrastructure configuration.public void setLogging(Logging logging)
The logging configuration of the infrastructure configuration.
logging
- The logging configuration of the infrastructure configuration.public Logging getLogging()
The logging configuration of the infrastructure configuration.
public InfrastructureConfiguration withLogging(Logging logging)
The logging configuration of the infrastructure configuration.
logging
- The logging configuration of the infrastructure configuration.public void setKeyPair(String keyPair)
The Amazon EC2 key pair of the infrastructure configuration.
keyPair
- The Amazon EC2 key pair of the infrastructure configuration.public String getKeyPair()
The Amazon EC2 key pair of the infrastructure configuration.
public InfrastructureConfiguration withKeyPair(String keyPair)
The Amazon EC2 key pair of the infrastructure configuration.
keyPair
- The Amazon EC2 key pair of the infrastructure configuration.public void setTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure configuration of the infrastructure configuration.
terminateInstanceOnFailure
- The terminate instance on failure configuration of the infrastructure configuration.public Boolean getTerminateInstanceOnFailure()
The terminate instance on failure configuration of the infrastructure configuration.
public InfrastructureConfiguration withTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure configuration of the infrastructure configuration.
terminateInstanceOnFailure
- The terminate instance on failure configuration of the infrastructure configuration.public Boolean isTerminateInstanceOnFailure()
The terminate instance on failure configuration of the infrastructure configuration.
public void setSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
snsTopicArn
- The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
public String getSnsTopicArn()
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
public InfrastructureConfiguration withSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
snsTopicArn
- The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
public void setDateCreated(String dateCreated)
The date on which the infrastructure configuration was created.
dateCreated
- The date on which the infrastructure configuration was created.public String getDateCreated()
The date on which the infrastructure configuration was created.
public InfrastructureConfiguration withDateCreated(String dateCreated)
The date on which the infrastructure configuration was created.
dateCreated
- The date on which the infrastructure configuration was created.public void setDateUpdated(String dateUpdated)
The date on which the infrastructure configuration was last updated.
dateUpdated
- The date on which the infrastructure configuration was last updated.public String getDateUpdated()
The date on which the infrastructure configuration was last updated.
public InfrastructureConfiguration withDateUpdated(String dateUpdated)
The date on which the infrastructure configuration was last updated.
dateUpdated
- The date on which the infrastructure configuration was last updated.public Map<String,String> getResourceTags()
The tags attached to the resource created by Image Builder.
public void setResourceTags(Map<String,String> resourceTags)
The tags attached to the resource created by Image Builder.
resourceTags
- The tags attached to the resource created by Image Builder.public InfrastructureConfiguration withResourceTags(Map<String,String> resourceTags)
The tags attached to the resource created by Image Builder.
resourceTags
- The tags attached to the resource created by Image Builder.public InfrastructureConfiguration addResourceTagsEntry(String key, String value)
public InfrastructureConfiguration clearResourceTagsEntries()
public void setInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata option settings for the infrastructure configuration.
instanceMetadataOptions
- The instance metadata option settings for the infrastructure configuration.public InstanceMetadataOptions getInstanceMetadataOptions()
The instance metadata option settings for the infrastructure configuration.
public InfrastructureConfiguration withInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata option settings for the infrastructure configuration.
instanceMetadataOptions
- The instance metadata option settings for the infrastructure configuration.public Map<String,String> getTags()
The tags of the infrastructure configuration.
public void setTags(Map<String,String> tags)
The tags of the infrastructure configuration.
tags
- The tags of the infrastructure configuration.public InfrastructureConfiguration withTags(Map<String,String> tags)
The tags of the infrastructure configuration.
tags
- The tags of the infrastructure configuration.public InfrastructureConfiguration addTagsEntry(String key, String value)
public InfrastructureConfiguration clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public InfrastructureConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.