@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateInfrastructureConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateInfrastructureConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateInfrastructureConfigurationRequest |
addResourceTagsEntry(String key,
String value)
Add a single ResourceTags entry
|
CreateInfrastructureConfigurationRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateInfrastructureConfigurationRequest |
clearResourceTagsEntries()
Removes all the entries added into ResourceTags.
|
CreateInfrastructureConfigurationRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateInfrastructureConfigurationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
String |
getDescription()
The description of the infrastructure configuration.
|
InstanceMetadataOptions |
getInstanceMetadataOptions()
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build
and test instances.
|
String |
getInstanceProfileName()
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
|
List<String> |
getInstanceTypes()
The instance types of the infrastructure configuration.
|
String |
getKeyPair()
The 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 to associate with the instance used to customize your Amazon EC2 AMI.
|
String |
getSnsTopicArn()
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
|
String |
getSubnetId()
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
|
Map<String,String> |
getTags()
The tags of the infrastructure configuration.
|
Boolean |
getTerminateInstanceOnFailure()
The terminate instance on failure setting of the infrastructure configuration.
|
int |
hashCode() |
Boolean |
isTerminateInstanceOnFailure()
The terminate instance on failure setting of the infrastructure configuration.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
void |
setDescription(String description)
The description of the infrastructure configuration.
|
void |
setInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build
and test instances.
|
void |
setInstanceProfileName(String instanceProfileName)
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
|
void |
setInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration.
|
void |
setKeyPair(String keyPair)
The 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 to associate with the instance used to customize your Amazon EC2 AMI.
|
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 in which to place the instance used to customize your Amazon EC2 AMI.
|
void |
setTags(Map<String,String> tags)
The tags of the infrastructure configuration.
|
void |
setTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure setting of the infrastructure configuration.
|
String |
toString()
Returns a string representation of this object.
|
CreateInfrastructureConfigurationRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
CreateInfrastructureConfigurationRequest |
withDescription(String description)
The description of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest |
withInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build
and test instances.
|
CreateInfrastructureConfigurationRequest |
withInstanceProfileName(String instanceProfileName)
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
|
CreateInfrastructureConfigurationRequest |
withInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest |
withInstanceTypes(String... instanceTypes)
The instance types of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest |
withKeyPair(String keyPair)
The key pair of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest |
withLogging(Logging logging)
The logging configuration of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest |
withName(String name)
The name of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest |
withResourceTags(Map<String,String> resourceTags)
The tags attached to the resource created by Image Builder.
|
CreateInfrastructureConfigurationRequest |
withSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
|
CreateInfrastructureConfigurationRequest |
withSecurityGroupIds(String... securityGroupIds)
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
|
CreateInfrastructureConfigurationRequest |
withSnsTopicArn(String snsTopicArn)
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
|
CreateInfrastructureConfigurationRequest |
withSubnetId(String subnetId)
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
|
CreateInfrastructureConfigurationRequest |
withTags(Map<String,String> tags)
The tags of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest |
withTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure setting of the infrastructure configuration.
|
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 CreateInfrastructureConfigurationRequest()
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 CreateInfrastructureConfigurationRequest 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 CreateInfrastructureConfigurationRequest 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. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
public void setInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
instanceTypes
- The instance types of the infrastructure configuration. You can specify one or more instance types to use
for this build. The service will pick one of these instance types based on availability.public CreateInfrastructureConfigurationRequest withInstanceTypes(String... instanceTypes)
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
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. You can specify one or more instance types to use
for this build. The service will pick one of these instance types based on availability.public CreateInfrastructureConfigurationRequest withInstanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
instanceTypes
- The instance types of the infrastructure configuration. You can specify one or more instance types to use
for this build. The service will pick one of these instance types based on availability.public void setInstanceProfileName(String instanceProfileName)
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
instanceProfileName
- The instance profile to associate with the instance used to customize your Amazon EC2 AMI.public String getInstanceProfileName()
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
public CreateInfrastructureConfigurationRequest withInstanceProfileName(String instanceProfileName)
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
instanceProfileName
- The instance profile to associate with the instance used to customize your Amazon EC2 AMI.public List<String> getSecurityGroupIds()
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
securityGroupIds
- The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.public CreateInfrastructureConfigurationRequest withSecurityGroupIds(String... securityGroupIds)
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
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 to associate with the instance used to customize your Amazon EC2 AMI.public CreateInfrastructureConfigurationRequest withSecurityGroupIds(Collection<String> securityGroupIds)
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
securityGroupIds
- The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.public void setSubnetId(String subnetId)
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
subnetId
- The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.public String getSubnetId()
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
public CreateInfrastructureConfigurationRequest withSubnetId(String subnetId)
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
subnetId
- The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.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 CreateInfrastructureConfigurationRequest withLogging(Logging logging)
The logging configuration of the infrastructure configuration.
logging
- The logging configuration of the infrastructure configuration.public void setKeyPair(String keyPair)
The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
keyPair
- The key pair of the infrastructure configuration. You can use this to log on to and debug the instance
used to create your image.public String getKeyPair()
The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
public CreateInfrastructureConfigurationRequest withKeyPair(String keyPair)
The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
keyPair
- The key pair of the infrastructure configuration. You can use this to log on to and debug the instance
used to create your image.public void setTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
terminateInstanceOnFailure
- The terminate instance on failure setting of the infrastructure configuration. Set to false if you want
Image Builder to retain the instance used to configure your AMI if the build or test phase of your
workflow fails.public Boolean getTerminateInstanceOnFailure()
The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
public CreateInfrastructureConfigurationRequest withTerminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
terminateInstanceOnFailure
- The terminate instance on failure setting of the infrastructure configuration. Set to false if you want
Image Builder to retain the instance used to configure your AMI if the build or test phase of your
workflow fails.public Boolean isTerminateInstanceOnFailure()
The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
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 CreateInfrastructureConfigurationRequest 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 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 CreateInfrastructureConfigurationRequest 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 CreateInfrastructureConfigurationRequest addResourceTagsEntry(String key, String value)
public CreateInfrastructureConfigurationRequest clearResourceTagsEntries()
public void setInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
instanceMetadataOptions
- The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch
EC2 build and test instances.public InstanceMetadataOptions getInstanceMetadataOptions()
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
public CreateInfrastructureConfigurationRequest withInstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
instanceMetadataOptions
- The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch
EC2 build and test instances.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 CreateInfrastructureConfigurationRequest withTags(Map<String,String> tags)
The tags of the infrastructure configuration.
tags
- The tags of the infrastructure configuration.public CreateInfrastructureConfigurationRequest addTagsEntry(String key, String value)
public CreateInfrastructureConfigurationRequest clearTagsEntries()
public void setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see Ensuring
idempotency in the Amazon EC2 API Reference.public String getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
public CreateInfrastructureConfigurationRequest withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information,
see Ensuring
idempotency in the Amazon EC2 API Reference.public String toString()
toString
in class Object
Object.toString()
public CreateInfrastructureConfigurationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()