public static interface Reservation.Builder extends CopyableBuilder<Reservation.Builder,Reservation>
Modifier and Type | Method and Description |
---|---|
Reservation.Builder |
groupNames(Collection<String> groupNames)
One or more security group names.
|
Reservation.Builder |
groupNames(String... groupNames)
One or more security group names.
|
Reservation.Builder |
groups(Collection<GroupIdentifier> groups)
[EC2-Classic only] One or more security groups.
|
Reservation.Builder |
groups(Consumer<GroupIdentifier.Builder>... groups)
[EC2-Classic only] One or more security groups.
|
Reservation.Builder |
groups(GroupIdentifier... groups)
[EC2-Classic only] One or more security groups.
|
Reservation.Builder |
instances(Collection<Instance> instances)
One or more instances.
|
Reservation.Builder |
instances(Consumer<Instance.Builder>... instances)
One or more instances.
|
Reservation.Builder |
instances(Instance... instances)
One or more instances.
|
Reservation.Builder |
ownerId(String ownerId)
The ID of the AWS account that owns the reservation.
|
Reservation.Builder |
requesterId(String requesterId)
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or
Auto Scaling).
|
Reservation.Builder |
reservationId(String reservationId)
The ID of the reservation.
|
copy
applyMutation, build
Reservation.Builder groups(Collection<GroupIdentifier> groups)
[EC2-Classic only] One or more security groups.
groups
- [EC2-Classic only] One or more security groups.Reservation.Builder groups(GroupIdentifier... groups)
[EC2-Classic only] One or more security groups.
groups
- [EC2-Classic only] One or more security groups.Reservation.Builder groups(Consumer<GroupIdentifier.Builder>... groups)
[EC2-Classic only] One or more security groups.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #groups(List)
.groups
- a consumer that will call methods on List.Builder
#groups(List)
Reservation.Builder instances(Collection<Instance> instances)
One or more instances.
instances
- One or more instances.Reservation.Builder instances(Instance... instances)
One or more instances.
instances
- One or more instances.Reservation.Builder instances(Consumer<Instance.Builder>... instances)
One or more instances.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #instances(List)
.instances
- a consumer that will call methods on List.Builder
#instances(List)
Reservation.Builder ownerId(String ownerId)
The ID of the AWS account that owns the reservation.
ownerId
- The ID of the AWS account that owns the reservation.Reservation.Builder requesterId(String requesterId)
The ID of the requester that launched the instances on your behalf (for example, AWS Management Console or Auto Scaling).
requesterId
- The ID of the requester that launched the instances on your behalf (for example, AWS Management
Console or Auto Scaling).Reservation.Builder reservationId(String reservationId)
The ID of the reservation.
reservationId
- The ID of the reservation.Reservation.Builder groupNames(Collection<String> groupNames)
One or more security group names.
groupNames
- One or more security group names.Reservation.Builder groupNames(String... groupNames)
One or more security group names.
groupNames
- One or more security group names.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.