Struct aws_sdk_ec2::model::purchase_request::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PurchaseRequest
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
The number of instances.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
The number of instances.
sourcepub fn purchase_token(self, input: impl Into<String>) -> Self
pub fn purchase_token(self, input: impl Into<String>) -> Self
The purchase token.
sourcepub fn set_purchase_token(self, input: Option<String>) -> Self
pub fn set_purchase_token(self, input: Option<String>) -> Self
The purchase token.
sourcepub fn build(self) -> PurchaseRequest
pub fn build(self) -> PurchaseRequest
Consumes the builder and constructs a PurchaseRequest
.