Interface InfrastructureConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InfrastructureConfiguration.Builder,InfrastructureConfiguration>,SdkBuilder<InfrastructureConfiguration.Builder,InfrastructureConfiguration>,SdkPojo
- Enclosing class:
- InfrastructureConfiguration
public static interface InfrastructureConfiguration.Builder extends SdkPojo, CopyableBuilder<InfrastructureConfiguration.Builder,InfrastructureConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InfrastructureConfiguration.Builderarn(String arn)The Amazon Resource Name (ARN) of the infrastructure configuration.InfrastructureConfiguration.BuilderdateCreated(String dateCreated)The date on which the infrastructure configuration was created.InfrastructureConfiguration.BuilderdateUpdated(String dateUpdated)The date on which the infrastructure configuration was last updated.InfrastructureConfiguration.Builderdescription(String description)The description of the infrastructure configuration.default InfrastructureConfiguration.BuilderinstanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions)The instance metadata option settings for the infrastructure configuration.InfrastructureConfiguration.BuilderinstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)The instance metadata option settings for the infrastructure configuration.InfrastructureConfiguration.BuilderinstanceProfileName(String instanceProfileName)The instance profile of the infrastructure configuration.InfrastructureConfiguration.BuilderinstanceTypes(String... instanceTypes)The instance types of the infrastructure configuration.InfrastructureConfiguration.BuilderinstanceTypes(Collection<String> instanceTypes)The instance types of the infrastructure configuration.InfrastructureConfiguration.BuilderkeyPair(String keyPair)The Amazon EC2 key pair of the infrastructure configuration.default InfrastructureConfiguration.Builderlogging(Consumer<Logging.Builder> logging)The logging configuration of the infrastructure configuration.InfrastructureConfiguration.Builderlogging(Logging logging)The logging configuration of the infrastructure configuration.InfrastructureConfiguration.Buildername(String name)The name of the infrastructure configuration.InfrastructureConfiguration.BuilderresourceTags(Map<String,String> resourceTags)The tags attached to the resource created by Image Builder.InfrastructureConfiguration.BuildersecurityGroupIds(String... securityGroupIds)The security group IDs of the infrastructure configuration.InfrastructureConfiguration.BuildersecurityGroupIds(Collection<String> securityGroupIds)The security group IDs of the infrastructure configuration.InfrastructureConfiguration.BuildersnsTopicArn(String snsTopicArn)The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.InfrastructureConfiguration.BuildersubnetId(String subnetId)The subnet ID of the infrastructure configuration.InfrastructureConfiguration.Buildertags(Map<String,String> tags)The tags of the infrastructure configuration.InfrastructureConfiguration.BuilderterminateInstanceOnFailure(Boolean terminateInstanceOnFailure)The terminate instance on failure configuration of the infrastructure configuration.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
arn
InfrastructureConfiguration.Builder arn(String arn)
The Amazon Resource Name (ARN) of the infrastructure configuration.
- Parameters:
arn- The Amazon Resource Name (ARN) of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
InfrastructureConfiguration.Builder name(String name)
The name of the infrastructure configuration.
- Parameters:
name- The name of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
InfrastructureConfiguration.Builder description(String description)
The description of the infrastructure configuration.
- Parameters:
description- The description of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
InfrastructureConfiguration.Builder instanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration.
- Parameters:
instanceTypes- The instance types of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
InfrastructureConfiguration.Builder instanceTypes(String... instanceTypes)
The instance types of the infrastructure configuration.
- Parameters:
instanceTypes- The instance types of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileName
InfrastructureConfiguration.Builder instanceProfileName(String instanceProfileName)
The instance profile of the infrastructure configuration.
- Parameters:
instanceProfileName- The instance profile of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
InfrastructureConfiguration.Builder securityGroupIds(Collection<String> securityGroupIds)
The security group IDs of the infrastructure configuration.
- Parameters:
securityGroupIds- The security group IDs of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
InfrastructureConfiguration.Builder securityGroupIds(String... securityGroupIds)
The security group IDs of the infrastructure configuration.
- Parameters:
securityGroupIds- The security group IDs of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
InfrastructureConfiguration.Builder subnetId(String subnetId)
The subnet ID of the infrastructure configuration.
- Parameters:
subnetId- The subnet ID of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
InfrastructureConfiguration.Builder logging(Logging logging)
The logging configuration of the infrastructure configuration.
- Parameters:
logging- The logging configuration of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
default InfrastructureConfiguration.Builder logging(Consumer<Logging.Builder> logging)
The logging configuration of the infrastructure configuration.
This is a convenience method that creates an instance of theLogging.Builderavoiding the need to create one manually viaLogging.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologging(Logging).- Parameters:
logging- a consumer that will call methods onLogging.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
logging(Logging)
-
keyPair
InfrastructureConfiguration.Builder keyPair(String keyPair)
The Amazon EC2 key pair of the infrastructure configuration.
- Parameters:
keyPair- The Amazon EC2 key pair of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminateInstanceOnFailure
InfrastructureConfiguration.Builder terminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure configuration of the infrastructure configuration.
- Parameters:
terminateInstanceOnFailure- The terminate instance on failure configuration of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicArn
InfrastructureConfiguration.Builder snsTopicArn(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateCreated
InfrastructureConfiguration.Builder dateCreated(String dateCreated)
The date on which the infrastructure configuration was created.
- Parameters:
dateCreated- The date on which the infrastructure configuration was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateUpdated
InfrastructureConfiguration.Builder dateUpdated(String dateUpdated)
The date on which the infrastructure configuration was last updated.
- Parameters:
dateUpdated- The date on which the infrastructure configuration was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
InfrastructureConfiguration.Builder resourceTags(Map<String,String> resourceTags)
The tags attached to the resource created by Image Builder.
- Parameters:
resourceTags- The tags attached to the resource created by Image Builder.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMetadataOptions
InfrastructureConfiguration.Builder instanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata option settings for the infrastructure configuration.
- Parameters:
instanceMetadataOptions- The instance metadata option settings for the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMetadataOptions
default InfrastructureConfiguration.Builder instanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions)
The instance metadata option settings for the infrastructure configuration.
This is a convenience method that creates an instance of theInstanceMetadataOptions.Builderavoiding the need to create one manually viaInstanceMetadataOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceMetadataOptions(InstanceMetadataOptions).- Parameters:
instanceMetadataOptions- a consumer that will call methods onInstanceMetadataOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
instanceMetadataOptions(InstanceMetadataOptions)
-
tags
InfrastructureConfiguration.Builder tags(Map<String,String> tags)
The tags of the infrastructure configuration.
- Parameters:
tags- The tags of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-