public static interface Reservation.Builder extends SdkPojo, CopyableBuilder<Reservation.Builder,Reservation>
| Modifier and Type | Method and Description |
|---|---|
Reservation.Builder |
groups(Collection<GroupIdentifier> groups)
[EC2-Classic only] The security groups.
|
Reservation.Builder |
groups(Consumer<GroupIdentifier.Builder>... groups)
[EC2-Classic only] The security groups.
|
Reservation.Builder |
groups(GroupIdentifier... groups)
[EC2-Classic only] The security groups.
|
Reservation.Builder |
instances(Collection<Instance> instances)
The instances.
|
Reservation.Builder |
instances(Consumer<Instance.Builder>... instances)
The instances.
|
Reservation.Builder |
instances(Instance... instances)
The instances.
|
Reservation.Builder |
ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the reservation.
|
Reservation.Builder |
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).
|
Reservation.Builder |
reservationId(String reservationId)
The ID of the reservation.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildReservation.Builder groups(Collection<GroupIdentifier> groups)
[EC2-Classic only] The security groups.
groups - [EC2-Classic only] The security groups.Reservation.Builder groups(GroupIdentifier... groups)
[EC2-Classic only] The security groups.
groups - [EC2-Classic only] The security groups.Reservation.Builder groups(Consumer<GroupIdentifier.Builder>... groups)
[EC2-Classic only] The security groups.
This is a convenience method that creates an instance of theGroupIdentifier.Builder avoiding the need to create one
manually via GroupIdentifier.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #groups(List.
groups - a consumer that will call methods on
GroupIdentifier.Builder#groups(java.util.Collection) Reservation.Builder instances(Collection<Instance> instances)
The instances.
instances - The instances.Reservation.Builder instances(Instance... instances)
The instances.
instances - The instances.Reservation.Builder instances(Consumer<Instance.Builder>... instances)
The instances.
This is a convenience method that creates an instance of theInstance.Builder avoiding the need to create one manually
via Instance.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #instances(List.
instances - a consumer that will call methods on
Instance.Builder#instances(java.util.Collection) Reservation.Builder ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the reservation.
ownerId - The ID of the Amazon Web Services account that owns the reservation.Reservation.Builder 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).
requesterId - The ID of the requester that launched the instances on your behalf (for example, Amazon Web Services
Management Console or Auto Scaling).Reservation.Builder reservationId(String reservationId)
The ID of the reservation.
reservationId - The ID of the reservation.Copyright © 2023. All rights reserved.