Struct aws_sdk_emr::model::instance_group_detail::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for InstanceGroupDetail
Implementations
sourceimpl Builder
impl Builder
sourcepub fn instance_group_id(self, input: impl Into<String>) -> Self
pub fn instance_group_id(self, input: impl Into<String>) -> Self
Unique identifier for the instance group.
sourcepub fn set_instance_group_id(self, input: Option<String>) -> Self
pub fn set_instance_group_id(self, input: Option<String>) -> Self
Unique identifier for the instance group.
sourcepub fn market(self, input: MarketType) -> Self
pub fn market(self, input: MarketType) -> Self
Market type of the EC2 instances used to create a cluster node.
sourcepub fn set_market(self, input: Option<MarketType>) -> Self
pub fn set_market(self, input: Option<MarketType>) -> Self
Market type of the EC2 instances used to create a cluster node.
sourcepub fn instance_role(self, input: InstanceRoleType) -> Self
pub fn instance_role(self, input: InstanceRoleType) -> Self
Instance group role in the cluster
sourcepub fn set_instance_role(self, input: Option<InstanceRoleType>) -> Self
pub fn set_instance_role(self, input: Option<InstanceRoleType>) -> Self
Instance group role in the cluster
sourcepub fn bid_price(self, input: impl Into<String>) -> Self
pub fn bid_price(self, input: impl Into<String>) -> Self
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
sourcepub fn set_bid_price(self, input: Option<String>) -> Self
pub fn set_bid_price(self, input: Option<String>) -> Self
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
EC2 instance type.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
EC2 instance type.
sourcepub fn instance_request_count(self, input: i32) -> Self
pub fn instance_request_count(self, input: i32) -> Self
Target number of instances to run in the instance group.
sourcepub fn set_instance_request_count(self, input: Option<i32>) -> Self
pub fn set_instance_request_count(self, input: Option<i32>) -> Self
Target number of instances to run in the instance group.
sourcepub fn instance_running_count(self, input: i32) -> Self
pub fn instance_running_count(self, input: i32) -> Self
Actual count of running instances.
sourcepub fn set_instance_running_count(self, input: Option<i32>) -> Self
pub fn set_instance_running_count(self, input: Option<i32>) -> Self
Actual count of running instances.
sourcepub fn state(self, input: InstanceGroupState) -> Self
pub fn state(self, input: InstanceGroupState) -> Self
State of instance group. The following values are no longer supported: STARTING, TERMINATED, and FAILED.
sourcepub fn set_state(self, input: Option<InstanceGroupState>) -> Self
pub fn set_state(self, input: Option<InstanceGroupState>) -> Self
State of instance group. The following values are no longer supported: STARTING, TERMINATED, and FAILED.
sourcepub fn last_state_change_reason(self, input: impl Into<String>) -> Self
pub fn last_state_change_reason(self, input: impl Into<String>) -> Self
Details regarding the state of the instance group.
sourcepub fn set_last_state_change_reason(self, input: Option<String>) -> Self
pub fn set_last_state_change_reason(self, input: Option<String>) -> Self
Details regarding the state of the instance group.
sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
The date/time the instance group was created.
sourcepub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
The date/time the instance group was created.
sourcepub fn start_date_time(self, input: DateTime) -> Self
pub fn start_date_time(self, input: DateTime) -> Self
The date/time the instance group was started.
sourcepub fn set_start_date_time(self, input: Option<DateTime>) -> Self
pub fn set_start_date_time(self, input: Option<DateTime>) -> Self
The date/time the instance group was started.
sourcepub fn ready_date_time(self, input: DateTime) -> Self
pub fn ready_date_time(self, input: DateTime) -> Self
The date/time the instance group was available to the cluster.
sourcepub fn set_ready_date_time(self, input: Option<DateTime>) -> Self
pub fn set_ready_date_time(self, input: Option<DateTime>) -> Self
The date/time the instance group was available to the cluster.
sourcepub fn end_date_time(self, input: DateTime) -> Self
pub fn end_date_time(self, input: DateTime) -> Self
The date/time the instance group was terminated.
sourcepub fn set_end_date_time(self, input: Option<DateTime>) -> Self
pub fn set_end_date_time(self, input: Option<DateTime>) -> Self
The date/time the instance group was terminated.
sourcepub fn custom_ami_id(self, input: impl Into<String>) -> Self
pub fn custom_ami_id(self, input: impl Into<String>) -> Self
The custom AMI ID to use for the provisioned instance group.
sourcepub fn set_custom_ami_id(self, input: Option<String>) -> Self
pub fn set_custom_ami_id(self, input: Option<String>) -> Self
The custom AMI ID to use for the provisioned instance group.
sourcepub fn build(self) -> InstanceGroupDetail
pub fn build(self) -> InstanceGroupDetail
Consumes the builder and constructs a InstanceGroupDetail
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more