#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for Instance
Implementations
sourceimpl Builder
impl Builder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier for the instance in Amazon EMR.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier for the instance in Amazon EMR.
sourcepub fn ec2_instance_id(self, input: impl Into<String>) -> Self
pub fn ec2_instance_id(self, input: impl Into<String>) -> Self
The unique identifier of the instance in Amazon EC2.
sourcepub fn set_ec2_instance_id(self, input: Option<String>) -> Self
pub fn set_ec2_instance_id(self, input: Option<String>) -> Self
The unique identifier of the instance in Amazon EC2.
sourcepub fn public_dns_name(self, input: impl Into<String>) -> Self
pub fn public_dns_name(self, input: impl Into<String>) -> Self
The public DNS name of the instance.
sourcepub fn set_public_dns_name(self, input: Option<String>) -> Self
pub fn set_public_dns_name(self, input: Option<String>) -> Self
The public DNS name of the instance.
sourcepub fn public_ip_address(self, input: impl Into<String>) -> Self
pub fn public_ip_address(self, input: impl Into<String>) -> Self
The public IP address of the instance.
sourcepub fn set_public_ip_address(self, input: Option<String>) -> Self
pub fn set_public_ip_address(self, input: Option<String>) -> Self
The public IP address of the instance.
sourcepub fn private_dns_name(self, input: impl Into<String>) -> Self
pub fn private_dns_name(self, input: impl Into<String>) -> Self
The private DNS name of the instance.
sourcepub fn set_private_dns_name(self, input: Option<String>) -> Self
pub fn set_private_dns_name(self, input: Option<String>) -> Self
The private DNS name of the instance.
sourcepub fn private_ip_address(self, input: impl Into<String>) -> Self
pub fn private_ip_address(self, input: impl Into<String>) -> Self
The private IP address of the instance.
sourcepub fn set_private_ip_address(self, input: Option<String>) -> Self
pub fn set_private_ip_address(self, input: Option<String>) -> Self
The private IP address of the instance.
sourcepub fn status(self, input: InstanceStatus) -> Self
pub fn status(self, input: InstanceStatus) -> Self
The current status of the instance.
sourcepub fn set_status(self, input: Option<InstanceStatus>) -> Self
pub fn set_status(self, input: Option<InstanceStatus>) -> Self
The current status of the instance.
sourcepub fn instance_group_id(self, input: impl Into<String>) -> Self
pub fn instance_group_id(self, input: impl Into<String>) -> Self
The identifier of the instance group to which this instance belongs.
sourcepub fn set_instance_group_id(self, input: Option<String>) -> Self
pub fn set_instance_group_id(self, input: Option<String>) -> Self
The identifier of the instance group to which this instance belongs.
sourcepub fn instance_fleet_id(self, input: impl Into<String>) -> Self
pub fn instance_fleet_id(self, input: impl Into<String>) -> Self
The unique identifier of the instance fleet to which an EC2 instance belongs.
sourcepub fn set_instance_fleet_id(self, input: Option<String>) -> Self
pub fn set_instance_fleet_id(self, input: Option<String>) -> Self
The unique identifier of the instance fleet to which an EC2 instance belongs.
sourcepub fn market(self, input: MarketType) -> Self
pub fn market(self, input: MarketType) -> Self
The instance purchasing option. Valid values are ON_DEMAND or SPOT.
sourcepub fn set_market(self, input: Option<MarketType>) -> Self
pub fn set_market(self, input: Option<MarketType>) -> Self
The instance purchasing option. Valid values are ON_DEMAND or SPOT.
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
The EC2 instance type, for example m3.xlarge.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
The EC2 instance type, for example m3.xlarge.
sourcepub fn ebs_volumes(self, input: EbsVolume) -> Self
pub fn ebs_volumes(self, input: EbsVolume) -> Self
Appends an item to ebs_volumes.
To override the contents of this collection use set_ebs_volumes.
The list of Amazon EBS volumes that are attached to this instance.
sourcepub fn set_ebs_volumes(self, input: Option<Vec<EbsVolume>>) -> Self
pub fn set_ebs_volumes(self, input: Option<Vec<EbsVolume>>) -> Self
The list of Amazon EBS volumes that are attached to this instance.
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 · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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