Struct aws_sdk_ec2::model::capacity_reservation_target::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CapacityReservationTarget
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn capacity_reservation_id(self, input: impl Into<String>) -> Self
pub fn capacity_reservation_id(self, input: impl Into<String>) -> Self
The ID of the Capacity Reservation in which to run the instance.
sourcepub fn set_capacity_reservation_id(self, input: Option<String>) -> Self
pub fn set_capacity_reservation_id(self, input: Option<String>) -> Self
The ID of the Capacity Reservation in which to run the instance.
sourcepub fn capacity_reservation_resource_group_arn(
self,
input: impl Into<String>
) -> Self
pub fn capacity_reservation_resource_group_arn(
self,
input: impl Into<String>
) -> Self
The ARN of the Capacity Reservation resource group in which to run the instance.
sourcepub fn set_capacity_reservation_resource_group_arn(
self,
input: Option<String>
) -> Self
pub fn set_capacity_reservation_resource_group_arn(
self,
input: Option<String>
) -> Self
The ARN of the Capacity Reservation resource group in which to run the instance.
sourcepub fn build(self) -> CapacityReservationTarget
pub fn build(self) -> CapacityReservationTarget
Consumes the builder and constructs a CapacityReservationTarget
.