Struct aws_sdk_emr::types::builders::PlacementGroupConfigBuilder
source · #[non_exhaustive]pub struct PlacementGroupConfigBuilder { /* private fields */ }Expand description
A builder for PlacementGroupConfig.
Implementations§
source§impl PlacementGroupConfigBuilder
impl PlacementGroupConfigBuilder
sourcepub fn instance_role(self, input: InstanceRoleType) -> Self
pub fn instance_role(self, input: InstanceRoleType) -> Self
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
sourcepub fn set_instance_role(self, input: Option<InstanceRoleType>) -> Self
pub fn set_instance_role(self, input: Option<InstanceRoleType>) -> Self
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
sourcepub fn get_instance_role(&self) -> &Option<InstanceRoleType>
pub fn get_instance_role(&self) -> &Option<InstanceRoleType>
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER.
sourcepub fn placement_strategy(self, input: PlacementGroupStrategy) -> Self
pub fn placement_strategy(self, input: PlacementGroupStrategy) -> Self
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for the MASTER instance role.
sourcepub fn set_placement_strategy(
self,
input: Option<PlacementGroupStrategy>,
) -> Self
pub fn set_placement_strategy( self, input: Option<PlacementGroupStrategy>, ) -> Self
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for the MASTER instance role.
sourcepub fn get_placement_strategy(&self) -> &Option<PlacementGroupStrategy>
pub fn get_placement_strategy(&self) -> &Option<PlacementGroupStrategy>
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD for the MASTER instance role.
sourcepub fn build(self) -> PlacementGroupConfig
pub fn build(self) -> PlacementGroupConfig
Consumes the builder and constructs a PlacementGroupConfig.
Trait Implementations§
source§impl Clone for PlacementGroupConfigBuilder
impl Clone for PlacementGroupConfigBuilder
source§fn clone(&self) -> PlacementGroupConfigBuilder
fn clone(&self) -> PlacementGroupConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PlacementGroupConfigBuilder
impl Debug for PlacementGroupConfigBuilder
source§impl Default for PlacementGroupConfigBuilder
impl Default for PlacementGroupConfigBuilder
source§fn default() -> PlacementGroupConfigBuilder
fn default() -> PlacementGroupConfigBuilder
impl StructuralPartialEq for PlacementGroupConfigBuilder
Auto Trait Implementations§
impl Freeze for PlacementGroupConfigBuilder
impl RefUnwindSafe for PlacementGroupConfigBuilder
impl Send for PlacementGroupConfigBuilder
impl Sync for PlacementGroupConfigBuilder
impl Unpin for PlacementGroupConfigBuilder
impl UnwindSafe for PlacementGroupConfigBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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 more