#[non_exhaustive]pub struct JobFlowDetailBuilder { /* private fields */ }
Expand description
A builder for JobFlowDetail
.
Implementations§
Source§impl JobFlowDetailBuilder
impl JobFlowDetailBuilder
Sourcepub fn job_flow_id(self, input: impl Into<String>) -> Self
pub fn job_flow_id(self, input: impl Into<String>) -> Self
The job flow identifier.
This field is required.Sourcepub fn set_job_flow_id(self, input: Option<String>) -> Self
pub fn set_job_flow_id(self, input: Option<String>) -> Self
The job flow identifier.
Sourcepub fn get_job_flow_id(&self) -> &Option<String>
pub fn get_job_flow_id(&self) -> &Option<String>
The job flow identifier.
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the job flow.
This field is required.Sourcepub fn log_uri(self, input: impl Into<String>) -> Self
pub fn log_uri(self, input: impl Into<String>) -> Self
The location in Amazon S3 where log files for the job are stored.
Sourcepub fn set_log_uri(self, input: Option<String>) -> Self
pub fn set_log_uri(self, input: Option<String>) -> Self
The location in Amazon S3 where log files for the job are stored.
Sourcepub fn get_log_uri(&self) -> &Option<String>
pub fn get_log_uri(&self) -> &Option<String>
The location in Amazon S3 where log files for the job are stored.
Sourcepub fn log_encryption_kms_key_id(self, input: impl Into<String>) -> Self
pub fn log_encryption_kms_key_id(self, input: impl Into<String>) -> Self
The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and later, excluding 6.0.0.
Sourcepub fn set_log_encryption_kms_key_id(self, input: Option<String>) -> Self
pub fn set_log_encryption_kms_key_id(self, input: Option<String>) -> Self
The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and later, excluding 6.0.0.
Sourcepub fn get_log_encryption_kms_key_id(&self) -> &Option<String>
pub fn get_log_encryption_kms_key_id(&self) -> &Option<String>
The KMS key used for encrypting log files. This attribute is only available with Amazon EMR 5.30.0 and later, excluding 6.0.0.
Sourcepub fn ami_version(self, input: impl Into<String>) -> Self
pub fn ami_version(self, input: impl Into<String>) -> Self
Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
Sourcepub fn set_ami_version(self, input: Option<String>) -> Self
pub fn set_ami_version(self, input: Option<String>) -> Self
Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
Sourcepub fn get_ami_version(&self) -> &Option<String>
pub fn get_ami_version(&self) -> &Option<String>
Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
Sourcepub fn execution_status_detail(
self,
input: JobFlowExecutionStatusDetail,
) -> Self
pub fn execution_status_detail( self, input: JobFlowExecutionStatusDetail, ) -> Self
Describes the execution status of the job flow.
This field is required.Sourcepub fn set_execution_status_detail(
self,
input: Option<JobFlowExecutionStatusDetail>,
) -> Self
pub fn set_execution_status_detail( self, input: Option<JobFlowExecutionStatusDetail>, ) -> Self
Describes the execution status of the job flow.
Sourcepub fn get_execution_status_detail(
&self,
) -> &Option<JobFlowExecutionStatusDetail>
pub fn get_execution_status_detail( &self, ) -> &Option<JobFlowExecutionStatusDetail>
Describes the execution status of the job flow.
Sourcepub fn instances(self, input: JobFlowInstancesDetail) -> Self
pub fn instances(self, input: JobFlowInstancesDetail) -> Self
Describes the Amazon EC2 instances of the job flow.
This field is required.Sourcepub fn set_instances(self, input: Option<JobFlowInstancesDetail>) -> Self
pub fn set_instances(self, input: Option<JobFlowInstancesDetail>) -> Self
Describes the Amazon EC2 instances of the job flow.
Sourcepub fn get_instances(&self) -> &Option<JobFlowInstancesDetail>
pub fn get_instances(&self) -> &Option<JobFlowInstancesDetail>
Describes the Amazon EC2 instances of the job flow.
Sourcepub fn steps(self, input: StepDetail) -> Self
pub fn steps(self, input: StepDetail) -> Self
Appends an item to steps
.
To override the contents of this collection use set_steps
.
A list of steps run by the job flow.
Sourcepub fn set_steps(self, input: Option<Vec<StepDetail>>) -> Self
pub fn set_steps(self, input: Option<Vec<StepDetail>>) -> Self
A list of steps run by the job flow.
Sourcepub fn get_steps(&self) -> &Option<Vec<StepDetail>>
pub fn get_steps(&self) -> &Option<Vec<StepDetail>>
A list of steps run by the job flow.
Sourcepub fn bootstrap_actions(self, input: BootstrapActionDetail) -> Self
pub fn bootstrap_actions(self, input: BootstrapActionDetail) -> Self
Appends an item to bootstrap_actions
.
To override the contents of this collection use set_bootstrap_actions
.
A list of the bootstrap actions run by the job flow.
Sourcepub fn set_bootstrap_actions(
self,
input: Option<Vec<BootstrapActionDetail>>,
) -> Self
pub fn set_bootstrap_actions( self, input: Option<Vec<BootstrapActionDetail>>, ) -> Self
A list of the bootstrap actions run by the job flow.
Sourcepub fn get_bootstrap_actions(&self) -> &Option<Vec<BootstrapActionDetail>>
pub fn get_bootstrap_actions(&self) -> &Option<Vec<BootstrapActionDetail>>
A list of the bootstrap actions run by the job flow.
Sourcepub fn supported_products(self, input: impl Into<String>) -> Self
pub fn supported_products(self, input: impl Into<String>) -> Self
Appends an item to supported_products
.
To override the contents of this collection use set_supported_products
.
A list of strings set by third-party software when the job flow is launched. If you are not using third-party software to manage the job flow, this value is empty.
Sourcepub fn set_supported_products(self, input: Option<Vec<String>>) -> Self
pub fn set_supported_products(self, input: Option<Vec<String>>) -> Self
A list of strings set by third-party software when the job flow is launched. If you are not using third-party software to manage the job flow, this value is empty.
Sourcepub fn get_supported_products(&self) -> &Option<Vec<String>>
pub fn get_supported_products(&self) -> &Option<Vec<String>>
A list of strings set by third-party software when the job flow is launched. If you are not using third-party software to manage the job flow, this value is empty.
Sourcepub fn visible_to_all_users(self, input: bool) -> Self
pub fn visible_to_all_users(self, input: bool) -> Self
Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster actions that their IAM policies allow. When false
, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of IAM permissions policies attached to other IAM principals.
The default value is true
if a value is not provided when creating a cluster using the Amazon EMR API RunJobFlow
command, the CLI create-cluster command, or the Amazon Web Services Management Console.
Sourcepub fn set_visible_to_all_users(self, input: Option<bool>) -> Self
pub fn set_visible_to_all_users(self, input: Option<bool>) -> Self
Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster actions that their IAM policies allow. When false
, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of IAM permissions policies attached to other IAM principals.
The default value is true
if a value is not provided when creating a cluster using the Amazon EMR API RunJobFlow
command, the CLI create-cluster command, or the Amazon Web Services Management Console.
Sourcepub fn get_visible_to_all_users(&self) -> &Option<bool>
pub fn get_visible_to_all_users(&self) -> &Option<bool>
Indicates whether the cluster is visible to IAM principals in the Amazon Web Services account associated with the cluster. When true
, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster actions that their IAM policies allow. When false
, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions, regardless of IAM permissions policies attached to other IAM principals.
The default value is true
if a value is not provided when creating a cluster using the Amazon EMR API RunJobFlow
command, the CLI create-cluster command, or the Amazon Web Services Management Console.
Sourcepub fn job_flow_role(self, input: impl Into<String>) -> Self
pub fn job_flow_role(self, input: impl Into<String>) -> Self
The IAM role that was specified when the job flow was launched. The Amazon EC2 instances of the job flow assume this role.
Sourcepub fn set_job_flow_role(self, input: Option<String>) -> Self
pub fn set_job_flow_role(self, input: Option<String>) -> Self
The IAM role that was specified when the job flow was launched. The Amazon EC2 instances of the job flow assume this role.
Sourcepub fn get_job_flow_role(&self) -> &Option<String>
pub fn get_job_flow_role(&self) -> &Option<String>
The IAM role that was specified when the job flow was launched. The Amazon EC2 instances of the job flow assume this role.
Sourcepub fn service_role(self, input: impl Into<String>) -> Self
pub fn service_role(self, input: impl Into<String>) -> Self
The IAM role that is assumed by the Amazon EMR service to access Amazon Web Services resources on your behalf.
Sourcepub fn set_service_role(self, input: Option<String>) -> Self
pub fn set_service_role(self, input: Option<String>) -> Self
The IAM role that is assumed by the Amazon EMR service to access Amazon Web Services resources on your behalf.
Sourcepub fn get_service_role(&self) -> &Option<String>
pub fn get_service_role(&self) -> &Option<String>
The IAM role that is assumed by the Amazon EMR service to access Amazon Web Services resources on your behalf.
Sourcepub fn auto_scaling_role(self, input: impl Into<String>) -> Self
pub fn auto_scaling_role(self, input: impl Into<String>) -> Self
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM role provides a way for the automatic scaling feature to get the required permissions it needs to launch and terminate Amazon EC2 instances in an instance group.
Sourcepub fn set_auto_scaling_role(self, input: Option<String>) -> Self
pub fn set_auto_scaling_role(self, input: Option<String>) -> Self
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM role provides a way for the automatic scaling feature to get the required permissions it needs to launch and terminate Amazon EC2 instances in an instance group.
Sourcepub fn get_auto_scaling_role(&self) -> &Option<String>
pub fn get_auto_scaling_role(&self) -> &Option<String>
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM role provides a way for the automatic scaling feature to get the required permissions it needs to launch and terminate Amazon EC2 instances in an instance group.
Sourcepub fn scale_down_behavior(self, input: ScaleDownBehavior) -> Self
pub fn scale_down_behavior(self, input: ScaleDownBehavior) -> Self
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
available only in Amazon EMR releases 4.1.0 and later, and is the default for releases of Amazon EMR earlier than 5.1.0.
Sourcepub fn set_scale_down_behavior(self, input: Option<ScaleDownBehavior>) -> Self
pub fn set_scale_down_behavior(self, input: Option<ScaleDownBehavior>) -> Self
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
available only in Amazon EMR releases 4.1.0 and later, and is the default for releases of Amazon EMR earlier than 5.1.0.
Sourcepub fn get_scale_down_behavior(&self) -> &Option<ScaleDownBehavior>
pub fn get_scale_down_behavior(&self) -> &Option<ScaleDownBehavior>
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
available only in Amazon EMR releases 4.1.0 and later, and is the default for releases of Amazon EMR earlier than 5.1.0.
Sourcepub fn build(self) -> JobFlowDetail
pub fn build(self) -> JobFlowDetail
Consumes the builder and constructs a JobFlowDetail
.
Trait Implementations§
Source§impl Clone for JobFlowDetailBuilder
impl Clone for JobFlowDetailBuilder
Source§fn clone(&self) -> JobFlowDetailBuilder
fn clone(&self) -> JobFlowDetailBuilder
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 JobFlowDetailBuilder
impl Debug for JobFlowDetailBuilder
Source§impl Default for JobFlowDetailBuilder
impl Default for JobFlowDetailBuilder
Source§fn default() -> JobFlowDetailBuilder
fn default() -> JobFlowDetailBuilder
Source§impl PartialEq for JobFlowDetailBuilder
impl PartialEq for JobFlowDetailBuilder
impl StructuralPartialEq for JobFlowDetailBuilder
Auto Trait Implementations§
impl Freeze for JobFlowDetailBuilder
impl RefUnwindSafe for JobFlowDetailBuilder
impl Send for JobFlowDetailBuilder
impl Sync for JobFlowDetailBuilder
impl Unpin for JobFlowDetailBuilder
impl UnwindSafe for JobFlowDetailBuilder
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);