@Generated(value="software.amazon.awssdk:codegen") public final class CreateInfrastructureConfigurationRequest extends ImagebuilderRequest implements ToCopyableBuilder<CreateInfrastructureConfigurationRequest.Builder,CreateInfrastructureConfigurationRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateInfrastructureConfigurationRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateInfrastructureConfigurationRequest.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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstanceTypes()
For responses, this returns true if the service returned a value for the InstanceTypes property.
|
boolean |
hasResourceTags()
For responses, this returns true if the service returned a value for the ResourceTags property.
|
boolean |
hasSecurityGroupIds()
For responses, this returns true if the service returned a value for the SecurityGroupIds property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
instanceProfileName()
The instance profile to associate with the instance used to customize your Amazon 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.
|
String |
name()
The name 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 Amazon EC2 AMI.
|
static Class<? extends CreateInfrastructureConfigurationRequest.Builder> |
serializableBuilderClass() |
String |
snsTopicArn()
The SNS topic on which to send image build events.
|
String |
subnetId()
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
|
Map<String,String> |
tags()
The tags of the infrastructure configuration.
|
Boolean |
terminateInstanceOnFailure()
The terminate instance on failure setting of the infrastructure configuration.
|
CreateInfrastructureConfigurationRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the infrastructure configuration.
public final String description()
The description of the infrastructure configuration.
public final boolean hasInstanceTypes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInstanceTypes() method.
public final String instanceProfileName()
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
public final boolean hasSecurityGroupIds()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> securityGroupIds()
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSecurityGroupIds() method.
public final String subnetId()
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
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 boolean hasResourceTags()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasResourceTags() method.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
The tags of the infrastructure configuration.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final String clientToken()
The idempotency token used to make this request idempotent.
public CreateInfrastructureConfigurationRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateInfrastructureConfigurationRequest.Builder,CreateInfrastructureConfigurationRequest>toBuilder in class ImagebuilderRequestpublic static CreateInfrastructureConfigurationRequest.Builder builder()
public static Class<? extends CreateInfrastructureConfigurationRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.