aws-sdk-amplifybackend 1.99.0

AWS SDK for AmplifyBackend
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetBackendJobOutput {
    /// <p>The app ID.</p>
    pub app_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the backend environment.</p>
    pub backend_environment_name: ::std::option::Option<::std::string::String>,
    /// <p>The time when the job was created.</p>
    pub create_time: ::std::option::Option<::std::string::String>,
    /// <p>If the request fails, this error is returned.</p>
    pub error: ::std::option::Option<::std::string::String>,
    /// <p>The ID for the job.</p>
    pub job_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the operation.</p>
    pub operation: ::std::option::Option<::std::string::String>,
    /// <p>The current status of the request.</p>
    pub status: ::std::option::Option<::std::string::String>,
    /// <p>The time when the job was last updated.</p>
    pub update_time: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetBackendJobOutput {
    /// <p>The app ID.</p>
    pub fn app_id(&self) -> ::std::option::Option<&str> {
        self.app_id.as_deref()
    }
    /// <p>The name of the backend environment.</p>
    pub fn backend_environment_name(&self) -> ::std::option::Option<&str> {
        self.backend_environment_name.as_deref()
    }
    /// <p>The time when the job was created.</p>
    pub fn create_time(&self) -> ::std::option::Option<&str> {
        self.create_time.as_deref()
    }
    /// <p>If the request fails, this error is returned.</p>
    pub fn error(&self) -> ::std::option::Option<&str> {
        self.error.as_deref()
    }
    /// <p>The ID for the job.</p>
    pub fn job_id(&self) -> ::std::option::Option<&str> {
        self.job_id.as_deref()
    }
    /// <p>The name of the operation.</p>
    pub fn operation(&self) -> ::std::option::Option<&str> {
        self.operation.as_deref()
    }
    /// <p>The current status of the request.</p>
    pub fn status(&self) -> ::std::option::Option<&str> {
        self.status.as_deref()
    }
    /// <p>The time when the job was last updated.</p>
    pub fn update_time(&self) -> ::std::option::Option<&str> {
        self.update_time.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for GetBackendJobOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetBackendJobOutput {
    /// Creates a new builder-style object to manufacture [`GetBackendJobOutput`](crate::operation::get_backend_job::GetBackendJobOutput).
    pub fn builder() -> crate::operation::get_backend_job::builders::GetBackendJobOutputBuilder {
        crate::operation::get_backend_job::builders::GetBackendJobOutputBuilder::default()
    }
}

/// A builder for [`GetBackendJobOutput`](crate::operation::get_backend_job::GetBackendJobOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBackendJobOutputBuilder {
    pub(crate) app_id: ::std::option::Option<::std::string::String>,
    pub(crate) backend_environment_name: ::std::option::Option<::std::string::String>,
    pub(crate) create_time: ::std::option::Option<::std::string::String>,
    pub(crate) error: ::std::option::Option<::std::string::String>,
    pub(crate) job_id: ::std::option::Option<::std::string::String>,
    pub(crate) operation: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<::std::string::String>,
    pub(crate) update_time: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetBackendJobOutputBuilder {
    /// <p>The app ID.</p>
    pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.app_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The app ID.</p>
    pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.app_id = input;
        self
    }
    /// <p>The app ID.</p>
    pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.app_id
    }
    /// <p>The name of the backend environment.</p>
    pub fn backend_environment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.backend_environment_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the backend environment.</p>
    pub fn set_backend_environment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.backend_environment_name = input;
        self
    }
    /// <p>The name of the backend environment.</p>
    pub fn get_backend_environment_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.backend_environment_name
    }
    /// <p>The time when the job was created.</p>
    pub fn create_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.create_time = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The time when the job was created.</p>
    pub fn set_create_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.create_time = input;
        self
    }
    /// <p>The time when the job was created.</p>
    pub fn get_create_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.create_time
    }
    /// <p>If the request fails, this error is returned.</p>
    pub fn error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.error = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>If the request fails, this error is returned.</p>
    pub fn set_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.error = input;
        self
    }
    /// <p>If the request fails, this error is returned.</p>
    pub fn get_error(&self) -> &::std::option::Option<::std::string::String> {
        &self.error
    }
    /// <p>The ID for the job.</p>
    pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.job_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID for the job.</p>
    pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.job_id = input;
        self
    }
    /// <p>The ID for the job.</p>
    pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.job_id
    }
    /// <p>The name of the operation.</p>
    pub fn operation(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.operation = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the operation.</p>
    pub fn set_operation(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.operation = input;
        self
    }
    /// <p>The name of the operation.</p>
    pub fn get_operation(&self) -> &::std::option::Option<::std::string::String> {
        &self.operation
    }
    /// <p>The current status of the request.</p>
    pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The current status of the request.</p>
    pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status = input;
        self
    }
    /// <p>The current status of the request.</p>
    pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
        &self.status
    }
    /// <p>The time when the job was last updated.</p>
    pub fn update_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.update_time = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The time when the job was last updated.</p>
    pub fn set_update_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.update_time = input;
        self
    }
    /// <p>The time when the job was last updated.</p>
    pub fn get_update_time(&self) -> &::std::option::Option<::std::string::String> {
        &self.update_time
    }
    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
    }
    /// Consumes the builder and constructs a [`GetBackendJobOutput`](crate::operation::get_backend_job::GetBackendJobOutput).
    pub fn build(self) -> crate::operation::get_backend_job::GetBackendJobOutput {
        crate::operation::get_backend_job::GetBackendJobOutput {
            app_id: self.app_id,
            backend_environment_name: self.backend_environment_name,
            create_time: self.create_time,
            error: self.error,
            job_id: self.job_id,
            operation: self.operation,
            status: self.status,
            update_time: self.update_time,
            _request_id: self._request_id,
        }
    }
}