Interface InstanceImageMetadata.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceImageMetadata.Builder,InstanceImageMetadata>
,SdkBuilder<InstanceImageMetadata.Builder,InstanceImageMetadata>
,SdkPojo
- Enclosing class:
- InstanceImageMetadata
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.Builder
availabilityZone(String availabilityZone)
The Availability Zone or Local Zone of the instance.default InstanceImageMetadata.Builder
imageMetadata(Consumer<ImageMetadata.Builder> imageMetadata)
Information about the AMI used to launch the instance.InstanceImageMetadata.Builder
imageMetadata(ImageMetadata imageMetadata)
Information about the AMI used to launch the instance.InstanceImageMetadata.Builder
instanceId(String instanceId)
The ID of the instance.InstanceImageMetadata.Builder
instanceType(String instanceType)
The instance type.InstanceImageMetadata.Builder
instanceType(InstanceType instanceType)
The instance type.InstanceImageMetadata.Builder
launchTime(Instant launchTime)
The time the instance was launched.default InstanceImageMetadata.Builder
operator(Consumer<OperatorResponse.Builder> operator)
The entity that manages the instance.InstanceImageMetadata.Builder
operator(OperatorResponse operator)
The entity that manages the instance.InstanceImageMetadata.Builder
ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the instance.default InstanceImageMetadata.Builder
state(Consumer<InstanceState.Builder> state)
The current state of the instance.InstanceImageMetadata.Builder
state(InstanceState state)
The current state of the instance.InstanceImageMetadata.Builder
tags(Collection<Tag> tags)
Any tags assigned to the instance.InstanceImageMetadata.Builder
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the instance.InstanceImageMetadata.Builder
tags(Tag... tags)
Any tags assigned to the instance.InstanceImageMetadata.Builder
zoneId(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.Builder
avoiding the need to create one manually viaInstanceState.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaImageMetadata.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaOperatorResponse.builder()
.When the
Consumer
completes,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)
-
-