aws-sdk-codebuild 1.122.0

AWS SDK for AWS CodeBuild
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 StartCommandExecutionOutput {
    /// <p>Information about the requested command executions.</p>
    pub command_execution: ::std::option::Option<crate::types::CommandExecution>,
    _request_id: Option<String>,
}
impl StartCommandExecutionOutput {
    /// <p>Information about the requested command executions.</p>
    pub fn command_execution(&self) -> ::std::option::Option<&crate::types::CommandExecution> {
        self.command_execution.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for StartCommandExecutionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl StartCommandExecutionOutput {
    /// Creates a new builder-style object to manufacture [`StartCommandExecutionOutput`](crate::operation::start_command_execution::StartCommandExecutionOutput).
    pub fn builder() -> crate::operation::start_command_execution::builders::StartCommandExecutionOutputBuilder {
        crate::operation::start_command_execution::builders::StartCommandExecutionOutputBuilder::default()
    }
}

/// A builder for [`StartCommandExecutionOutput`](crate::operation::start_command_execution::StartCommandExecutionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartCommandExecutionOutputBuilder {
    pub(crate) command_execution: ::std::option::Option<crate::types::CommandExecution>,
    _request_id: Option<String>,
}
impl StartCommandExecutionOutputBuilder {
    /// <p>Information about the requested command executions.</p>
    pub fn command_execution(mut self, input: crate::types::CommandExecution) -> Self {
        self.command_execution = ::std::option::Option::Some(input);
        self
    }
    /// <p>Information about the requested command executions.</p>
    pub fn set_command_execution(mut self, input: ::std::option::Option<crate::types::CommandExecution>) -> Self {
        self.command_execution = input;
        self
    }
    /// <p>Information about the requested command executions.</p>
    pub fn get_command_execution(&self) -> &::std::option::Option<crate::types::CommandExecution> {
        &self.command_execution
    }
    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 [`StartCommandExecutionOutput`](crate::operation::start_command_execution::StartCommandExecutionOutput).
    pub fn build(self) -> crate::operation::start_command_execution::StartCommandExecutionOutput {
        crate::operation::start_command_execution::StartCommandExecutionOutput {
            command_execution: self.command_execution,
            _request_id: self._request_id,
        }
    }
}