Interface InstanceImageMetadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceImageMetadata.Builder,
,InstanceImageMetadata> SdkBuilder<InstanceImageMetadata.Builder,
,InstanceImageMetadata> SdkPojo
- Enclosing class:
InstanceImageMetadata
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(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.imageMetadata
(ImageMetadata imageMetadata) Information about the AMI used to launch the instance.instanceId
(String instanceId) The ID of the instance.instanceType
(String instanceType) The instance type.instanceType
(InstanceType instanceType) The instance type.launchTime
(Instant launchTime) The time the instance was launched.default InstanceImageMetadata.Builder
operator
(Consumer<OperatorResponse.Builder> operator) The entity that manages the instance.operator
(OperatorResponse operator) The entity that manages the instance.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.state
(InstanceState state) The current state of the instance.tags
(Collection<Tag> tags) Any tags assigned to the instance.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the instance.Any tags assigned to the instance.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 Details
-
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
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
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:
-
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
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
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
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
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:
-
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
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
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
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 totags(List<Tag>)
.- 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:
-
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
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:
-
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
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:
-