Interface InstanceImageMetadata.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceImageMetadata.Builder,InstanceImageMetadata>,SdkBuilder<InstanceImageMetadata.Builder,InstanceImageMetadata>,SdkPojo
- Enclosing class:
- InstanceImageMetadata
@Mutable @NotThreadSafe public static interface InstanceImageMetadata.Builder extends SdkPojo, CopyableBuilder<InstanceImageMetadata.Builder,InstanceImageMetadata>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceImageMetadata.BuilderavailabilityZone(String availabilityZone)The Availability Zone or Local Zone of the instance.default InstanceImageMetadata.BuilderimageMetadata(Consumer<ImageMetadata.Builder> imageMetadata)Information about the AMI used to launch the instance.InstanceImageMetadata.BuilderimageMetadata(ImageMetadata imageMetadata)Information about the AMI used to launch the instance.InstanceImageMetadata.BuilderinstanceId(String instanceId)The ID of the instance.InstanceImageMetadata.BuilderinstanceType(String instanceType)The instance type.InstanceImageMetadata.BuilderinstanceType(InstanceType instanceType)The instance type.InstanceImageMetadata.BuilderlaunchTime(Instant launchTime)The time the instance was launched.default InstanceImageMetadata.Builderoperator(Consumer<OperatorResponse.Builder> operator)The entity that manages the instance.InstanceImageMetadata.Builderoperator(OperatorResponse operator)The entity that manages the instance.InstanceImageMetadata.BuilderownerId(String ownerId)The ID of the Amazon Web Services account that owns the instance.default InstanceImageMetadata.Builderstate(Consumer<InstanceState.Builder> state)The current state of the instance.InstanceImageMetadata.Builderstate(InstanceState state)The current state of the instance.InstanceImageMetadata.Buildertags(Collection<Tag> tags)Any tags assigned to the instance.InstanceImageMetadata.Buildertags(Consumer<Tag.Builder>... tags)Any tags assigned to the instance.InstanceImageMetadata.Buildertags(Tag... tags)Any tags assigned to the instance.InstanceImageMetadata.BuilderzoneId(String zoneId)The ID of the Availability Zone or Local Zone of the instance.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
instanceId
InstanceImageMetadata.Builder instanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
InstanceImageMetadata.Builder instanceType(String instanceType)
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType,InstanceType
-
instanceType
InstanceImageMetadata.Builder instanceType(InstanceType instanceType)
The instance type.
- Parameters:
instanceType- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType,InstanceType
-
launchTime
InstanceImageMetadata.Builder launchTime(Instant launchTime)
The time the instance was launched.
- Parameters:
launchTime- The time the instance was launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
InstanceImageMetadata.Builder availabilityZone(String availabilityZone)
The Availability Zone or Local Zone of the instance.
- Parameters:
availabilityZone- The Availability Zone or Local Zone of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneId
InstanceImageMetadata.Builder zoneId(String zoneId)
The ID of the Availability Zone or Local Zone of the instance.
- Parameters:
zoneId- The ID of the Availability Zone or Local Zone of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
InstanceImageMetadata.Builder state(InstanceState state)
The current state of the instance.
- Parameters:
state- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
default InstanceImageMetadata.Builder state(Consumer<InstanceState.Builder> state)
The current state of the instance.
This is a convenience method that creates an instance of theInstanceState.Builderavoiding the need to create one manually viaInstanceState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostate(InstanceState).- Parameters:
state- a consumer that will call methods onInstanceState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
state(InstanceState)
-
ownerId
InstanceImageMetadata.Builder ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the instance.
- Parameters:
ownerId- The ID of the Amazon Web Services account that owns the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
InstanceImageMetadata.Builder tags(Collection<Tag> tags)
Any tags assigned to the instance.
- Parameters:
tags- Any tags assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
InstanceImageMetadata.Builder tags(Tag... tags)
Any tags assigned to the instance.
- Parameters:
tags- Any tags assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
InstanceImageMetadata.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the instance.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
imageMetadata
InstanceImageMetadata.Builder imageMetadata(ImageMetadata imageMetadata)
Information about the AMI used to launch the instance.
- Parameters:
imageMetadata- Information about the AMI used to launch the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageMetadata
default InstanceImageMetadata.Builder imageMetadata(Consumer<ImageMetadata.Builder> imageMetadata)
Information about the AMI used to launch the instance.
This is a convenience method that creates an instance of theImageMetadata.Builderavoiding the need to create one manually viaImageMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageMetadata(ImageMetadata).- Parameters:
imageMetadata- a consumer that will call methods onImageMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageMetadata(ImageMetadata)
-
operator
InstanceImageMetadata.Builder operator(OperatorResponse operator)
The entity that manages the instance.
- Parameters:
operator- The entity that manages the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operator
default InstanceImageMetadata.Builder operator(Consumer<OperatorResponse.Builder> operator)
The entity that manages the instance.
This is a convenience method that creates an instance of theOperatorResponse.Builderavoiding the need to create one manually viaOperatorResponse.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooperator(OperatorResponse).- Parameters:
operator- a consumer that will call methods onOperatorResponse.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
operator(OperatorResponse)
-
-