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 Details

    • 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

      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

      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

      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

      The logging configuration of the infrastructure configuration.

      This is a convenience method that creates an instance of the Logging.Builder avoiding the need to create one manually via Logging.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to logging(Logging).

      Parameters:
      logging - a consumer that will call methods on Logging.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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 the InstanceMetadataOptions.Builder avoiding the need to create one manually via InstanceMetadataOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instanceMetadataOptions(InstanceMetadataOptions).

      Parameters:
      instanceMetadataOptions - a consumer that will call methods on InstanceMetadataOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.