Interface RunInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<RunInstancesResponse.Builder,
,RunInstancesResponse> Ec2Response.Builder
,SdkBuilder<RunInstancesResponse.Builder,
,RunInstancesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
RunInstancesResponse
@Mutable
@NotThreadSafe
public static interface RunInstancesResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<RunInstancesResponse.Builder,RunInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptiongroups
(Collection<GroupIdentifier> groups) Not supported.groups
(Consumer<GroupIdentifier.Builder>... groups) Not supported.groups
(GroupIdentifier... groups) Not supported.instances
(Collection<Instance> instances) The instances.instances
(Consumer<Instance.Builder>... instances) The instances.The instances.The ID of the Amazon Web Services account that owns the reservation.requesterId
(String requesterId) The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).reservationId
(String reservationId) The ID of the reservation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
reservationId
The ID of the reservation.
- Parameters:
reservationId
- The ID of the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The ID of the Amazon Web Services account that owns the reservation.
- Parameters:
ownerId
- The ID of the Amazon Web Services account that owns the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requesterId
The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).
- Parameters:
requesterId
- The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services Management Console or Auto Scaling).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Not supported.
- Parameters:
groups
- Not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Not supported.
- Parameters:
groups
- Not supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
Not supported.
This is a convenience method that creates an instance of theGroupIdentifier.Builder
avoiding the need to create one manually viaGroupIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroups(List<GroupIdentifier>)
.- Parameters:
groups
- a consumer that will call methods onGroupIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instances
The instances.
- Parameters:
instances
- The instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
The instances.
- Parameters:
instances
- The instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
The instances.
This is a convenience method that creates an instance of theInstance.Builder
avoiding the need to create one manually viaInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstances(List<Instance>)
.- Parameters:
instances
- a consumer that will call methods onInstance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-