Struct aws_sdk_ec2::model::instance_credit_specification::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceCreditSpecification
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
sourcepub fn cpu_credits(self, input: impl Into<String>) -> Self
pub fn cpu_credits(self, input: impl Into<String>) -> Self
The credit option for CPU usage of the instance.
Valid values: standard
| unlimited
sourcepub fn set_cpu_credits(self, input: Option<String>) -> Self
pub fn set_cpu_credits(self, input: Option<String>) -> Self
The credit option for CPU usage of the instance.
Valid values: standard
| unlimited
sourcepub fn build(self) -> InstanceCreditSpecification
pub fn build(self) -> InstanceCreditSpecification
Consumes the builder and constructs a InstanceCreditSpecification
.