@Generated(value="software.amazon.awssdk:codegen") public final class UpdateInfrastructureConfigurationRequest extends ImagebuilderRequest implements ToCopyableBuilder<UpdateInfrastructureConfigurationRequest.Builder,UpdateInfrastructureConfigurationRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
UpdateInfrastructureConfigurationRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static UpdateInfrastructureConfigurationRequest.Builder |
builder() |
String |
clientToken()
The idempotency token used to make this request idempotent.
|
String |
description()
The description of the infrastructure configuration.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
boolean |
hasInstanceTypes()
Returns true if the InstanceTypes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasResourceTags()
Returns true if the ResourceTags property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasSecurityGroupIds()
Returns true if the SecurityGroupIds property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
infrastructureConfigurationArn()
The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.
|
String |
instanceProfileName()
The instance profile to associate with the instance used to customize your EC2 AMI.
|
List<String> |
instanceTypes()
The instance types of the infrastructure configuration.
|
String |
keyPair()
The key pair of the infrastructure configuration.
|
Logging |
logging()
The logging configuration of the infrastructure configuration.
|
Map<String,String> |
resourceTags()
The tags attached to the resource created by Image Builder.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroupIds()
The security group IDs to associate with the instance used to customize your EC2 AMI.
|
static Class<? extends UpdateInfrastructureConfigurationRequest.Builder> |
serializableBuilderClass() |
String |
snsTopicArn()
The SNS topic on which to send image build events.
|
String |
subnetId()
The subnet ID to place the instance used to customize your EC2 AMI in.
|
Boolean |
terminateInstanceOnFailure()
The terminate instance on failure setting of the infrastructure configuration.
|
UpdateInfrastructureConfigurationRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
copy
public final String infrastructureConfigurationArn()
The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.
public final String description()
The description of the infrastructure configuration.
public final boolean hasInstanceTypes()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInstanceTypes()
to see if a value was sent in this field.
public final String instanceProfileName()
The instance profile to associate with the instance used to customize your EC2 AMI.
public final boolean hasSecurityGroupIds()
public final List<String> securityGroupIds()
The security group IDs to associate with the instance used to customize your EC2 AMI.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSecurityGroupIds()
to see if a value was sent in this field.
public final String subnetId()
The subnet ID to place the instance used to customize your EC2 AMI in.
public final Logging logging()
The logging configuration of the infrastructure configuration.
public final String keyPair()
The key pair of the infrastructure configuration. This can be used to log on to and debug the instance used to create your image.
public final 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.
public final String snsTopicArn()
The SNS topic on which to send image build events.
public final String clientToken()
The idempotency token used to make this request idempotent.
public final boolean hasResourceTags()
public final Map<String,String> resourceTags()
The tags attached to the resource created by Image Builder.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResourceTags()
to see if a value was sent in this field.
public UpdateInfrastructureConfigurationRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UpdateInfrastructureConfigurationRequest.Builder,UpdateInfrastructureConfigurationRequest>
toBuilder
in class ImagebuilderRequest
public static UpdateInfrastructureConfigurationRequest.Builder builder()
public static Class<? extends UpdateInfrastructureConfigurationRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.