#[non_exhaustive]pub struct InstanceGroupDetailBuilder { /* private fields */ }
Expand description
A builder for InstanceGroupDetail
.
Implementations§
Source§impl InstanceGroupDetailBuilder
impl InstanceGroupDetailBuilder
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 get_instance_group_id(&self) -> &Option<String>
pub fn get_instance_group_id(&self) -> &Option<String>
Unique identifier for the instance group.
Sourcepub fn market(self, input: MarketType) -> Self
pub fn market(self, input: MarketType) -> Self
Market type of the Amazon EC2 instances used to create a cluster node.
This field is required.Sourcepub fn set_market(self, input: Option<MarketType>) -> Self
pub fn set_market(self, input: Option<MarketType>) -> Self
Market type of the Amazon EC2 instances used to create a cluster node.
Sourcepub fn get_market(&self) -> &Option<MarketType>
pub fn get_market(&self) -> &Option<MarketType>
Market type of the Amazon 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
This field is required.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 get_instance_role(&self) -> &Option<InstanceRoleType>
pub fn get_instance_role(&self) -> &Option<InstanceRoleType>
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 get_bid_price(&self) -> &Option<String>
pub fn get_bid_price(&self) -> &Option<String>
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
Amazon EC2 instance type.
This field is required.Sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
Amazon EC2 instance type.
Sourcepub fn get_instance_type(&self) -> &Option<String>
pub fn get_instance_type(&self) -> &Option<String>
Amazon 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.
This field is required.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 get_instance_request_count(&self) -> &Option<i32>
pub fn get_instance_request_count(&self) -> &Option<i32>
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.
This field is required.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 get_instance_running_count(&self) -> &Option<i32>
pub fn get_instance_running_count(&self) -> &Option<i32>
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.
This field is required.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 get_state(&self) -> &Option<InstanceGroupState>
pub fn get_state(&self) -> &Option<InstanceGroupState>
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 get_last_state_change_reason(&self) -> &Option<String>
pub fn get_last_state_change_reason(&self) -> &Option<String>
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.
This field is required.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 get_creation_date_time(&self) -> &Option<DateTime>
pub fn get_creation_date_time(&self) -> &Option<DateTime>
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 get_start_date_time(&self) -> &Option<DateTime>
pub fn get_start_date_time(&self) -> &Option<DateTime>
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 get_ready_date_time(&self) -> &Option<DateTime>
pub fn get_ready_date_time(&self) -> &Option<DateTime>
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 get_end_date_time(&self) -> &Option<DateTime>
pub fn get_end_date_time(&self) -> &Option<DateTime>
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 get_custom_ami_id(&self) -> &Option<String>
pub fn get_custom_ami_id(&self) -> &Option<String>
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§
Source§impl Clone for InstanceGroupDetailBuilder
impl Clone for InstanceGroupDetailBuilder
Source§fn clone(&self) -> InstanceGroupDetailBuilder
fn clone(&self) -> InstanceGroupDetailBuilder
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InstanceGroupDetailBuilder
impl Debug for InstanceGroupDetailBuilder
Source§impl Default for InstanceGroupDetailBuilder
impl Default for InstanceGroupDetailBuilder
Source§fn default() -> InstanceGroupDetailBuilder
fn default() -> InstanceGroupDetailBuilder
Source§impl PartialEq for InstanceGroupDetailBuilder
impl PartialEq for InstanceGroupDetailBuilder
Source§fn eq(&self, other: &InstanceGroupDetailBuilder) -> bool
fn eq(&self, other: &InstanceGroupDetailBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InstanceGroupDetailBuilder
Auto Trait Implementations§
impl Freeze for InstanceGroupDetailBuilder
impl RefUnwindSafe for InstanceGroupDetailBuilder
impl Send for InstanceGroupDetailBuilder
impl Sync for InstanceGroupDetailBuilder
impl Unpin for InstanceGroupDetailBuilder
impl UnwindSafe for InstanceGroupDetailBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);