Struct aws_sdk_emr::types::HadoopJarStepConfig
source · #[non_exhaustive]pub struct HadoopJarStepConfig {
pub properties: Option<Vec<KeyValue>>,
pub jar: Option<String>,
pub main_class: Option<String>,
pub args: Option<Vec<String>>,
}
Expand description
A job flow step consisting of a JAR file whose main function will be executed. The main function submits a job for Hadoop to execute and waits for the job to finish or fail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.properties: Option<Vec<KeyValue>>
A list of Java properties that are set when the step runs. You can use these properties to pass key-value pairs to your main function.
jar: Option<String>
A path to a JAR file run during the step.
main_class: Option<String>
The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
args: Option<Vec<String>>
A list of command line arguments passed to the JAR file's main function when executed.
Implementations§
source§impl HadoopJarStepConfig
impl HadoopJarStepConfig
sourcepub fn properties(&self) -> &[KeyValue]
pub fn properties(&self) -> &[KeyValue]
A list of Java properties that are set when the step runs. You can use these properties to pass key-value pairs to your main function.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .properties.is_none()
.
sourcepub fn main_class(&self) -> Option<&str>
pub fn main_class(&self) -> Option<&str>
The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
source§impl HadoopJarStepConfig
impl HadoopJarStepConfig
sourcepub fn builder() -> HadoopJarStepConfigBuilder
pub fn builder() -> HadoopJarStepConfigBuilder
Creates a new builder-style object to manufacture HadoopJarStepConfig
.
Trait Implementations§
source§impl Clone for HadoopJarStepConfig
impl Clone for HadoopJarStepConfig
source§fn clone(&self) -> HadoopJarStepConfig
fn clone(&self) -> HadoopJarStepConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HadoopJarStepConfig
impl Debug for HadoopJarStepConfig
source§impl PartialEq for HadoopJarStepConfig
impl PartialEq for HadoopJarStepConfig
source§fn eq(&self, other: &HadoopJarStepConfig) -> bool
fn eq(&self, other: &HadoopJarStepConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HadoopJarStepConfig
Auto Trait Implementations§
impl Freeze for HadoopJarStepConfig
impl RefUnwindSafe for HadoopJarStepConfig
impl Send for HadoopJarStepConfig
impl Sync for HadoopJarStepConfig
impl Unpin for HadoopJarStepConfig
impl UnwindSafe for HadoopJarStepConfig
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> 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