aws_sdk_dataexchange/operation/get_job/
_get_job_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetJobOutput {
pub arn: ::std::option::Option<::std::string::String>,
pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub details: ::std::option::Option<crate::types::ResponseDetails>,
pub errors: ::std::option::Option<::std::vec::Vec<crate::types::JobError>>,
pub id: ::std::option::Option<::std::string::String>,
pub state: ::std::option::Option<crate::types::State>,
pub r#type: ::std::option::Option<crate::types::Type>,
pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl GetJobOutput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn details(&self) -> ::std::option::Option<&crate::types::ResponseDetails> {
self.details.as_ref()
}
pub fn errors(&self) -> &[crate::types::JobError] {
self.errors.as_deref().unwrap_or_default()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn state(&self) -> ::std::option::Option<&crate::types::State> {
self.state.as_ref()
}
pub fn r#type(&self) -> ::std::option::Option<&crate::types::Type> {
self.r#type.as_ref()
}
pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetJobOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetJobOutput {
pub fn builder() -> crate::operation::get_job::builders::GetJobOutputBuilder {
crate::operation::get_job::builders::GetJobOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetJobOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) details: ::std::option::Option<crate::types::ResponseDetails>,
pub(crate) errors: ::std::option::Option<::std::vec::Vec<crate::types::JobError>>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) state: ::std::option::Option<crate::types::State>,
pub(crate) r#type: ::std::option::Option<crate::types::Type>,
pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl GetJobOutputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
pub fn details(mut self, input: crate::types::ResponseDetails) -> Self {
self.details = ::std::option::Option::Some(input);
self
}
pub fn set_details(mut self, input: ::std::option::Option<crate::types::ResponseDetails>) -> Self {
self.details = input;
self
}
pub fn get_details(&self) -> &::std::option::Option<crate::types::ResponseDetails> {
&self.details
}
pub fn errors(mut self, input: crate::types::JobError) -> Self {
let mut v = self.errors.unwrap_or_default();
v.push(input);
self.errors = ::std::option::Option::Some(v);
self
}
pub fn set_errors(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::JobError>>) -> Self {
self.errors = input;
self
}
pub fn get_errors(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::JobError>> {
&self.errors
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn state(mut self, input: crate::types::State) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
pub fn set_state(mut self, input: ::std::option::Option<crate::types::State>) -> Self {
self.state = input;
self
}
pub fn get_state(&self) -> &::std::option::Option<crate::types::State> {
&self.state
}
pub fn r#type(mut self, input: crate::types::Type) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
pub fn set_type(mut self, input: ::std::option::Option<crate::types::Type>) -> Self {
self.r#type = input;
self
}
pub fn get_type(&self) -> &::std::option::Option<crate::types::Type> {
&self.r#type
}
pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_at = ::std::option::Option::Some(input);
self
}
pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_at = input;
self
}
pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_at
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_job::GetJobOutput {
crate::operation::get_job::GetJobOutput {
arn: self.arn,
created_at: self.created_at,
details: self.details,
errors: self.errors,
id: self.id,
state: self.state,
r#type: self.r#type,
updated_at: self.updated_at,
_request_id: self._request_id,
}
}
}