#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetDeploymentStatusOutput {
#[doc(hidden)]
pub deployment_status: std::option::Option<std::string::String>,
#[doc(hidden)]
pub deployment_type: std::option::Option<crate::types::DeploymentType>,
#[doc(hidden)]
pub error_details: std::option::Option<std::vec::Vec<crate::types::ErrorDetail>>,
#[doc(hidden)]
pub error_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub updated_at: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl GetDeploymentStatusOutput {
pub fn deployment_status(&self) -> std::option::Option<&str> {
self.deployment_status.as_deref()
}
pub fn deployment_type(&self) -> std::option::Option<&crate::types::DeploymentType> {
self.deployment_type.as_ref()
}
pub fn error_details(&self) -> std::option::Option<&[crate::types::ErrorDetail]> {
self.error_details.as_deref()
}
pub fn error_message(&self) -> std::option::Option<&str> {
self.error_message.as_deref()
}
pub fn updated_at(&self) -> std::option::Option<&str> {
self.updated_at.as_deref()
}
}
impl aws_http::request_id::RequestId for GetDeploymentStatusOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDeploymentStatusOutput {
pub fn builder(
) -> crate::operation::get_deployment_status::builders::GetDeploymentStatusOutputBuilder {
crate::operation::get_deployment_status::builders::GetDeploymentStatusOutputBuilder::default(
)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetDeploymentStatusOutputBuilder {
pub(crate) deployment_status: std::option::Option<std::string::String>,
pub(crate) deployment_type: std::option::Option<crate::types::DeploymentType>,
pub(crate) error_details: std::option::Option<std::vec::Vec<crate::types::ErrorDetail>>,
pub(crate) error_message: std::option::Option<std::string::String>,
pub(crate) updated_at: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl GetDeploymentStatusOutputBuilder {
pub fn deployment_status(mut self, input: impl Into<std::string::String>) -> Self {
self.deployment_status = Some(input.into());
self
}
pub fn set_deployment_status(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.deployment_status = input;
self
}
pub fn deployment_type(mut self, input: crate::types::DeploymentType) -> Self {
self.deployment_type = Some(input);
self
}
pub fn set_deployment_type(
mut self,
input: std::option::Option<crate::types::DeploymentType>,
) -> Self {
self.deployment_type = input;
self
}
pub fn error_details(mut self, input: crate::types::ErrorDetail) -> Self {
let mut v = self.error_details.unwrap_or_default();
v.push(input);
self.error_details = Some(v);
self
}
pub fn set_error_details(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::ErrorDetail>>,
) -> Self {
self.error_details = input;
self
}
pub fn error_message(mut self, input: impl Into<std::string::String>) -> Self {
self.error_message = Some(input.into());
self
}
pub fn set_error_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.error_message = input;
self
}
pub fn updated_at(mut self, input: impl Into<std::string::String>) -> Self {
self.updated_at = Some(input.into());
self
}
pub fn set_updated_at(mut self, input: std::option::Option<std::string::String>) -> Self {
self.updated_at = input;
self
}
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_deployment_status::GetDeploymentStatusOutput {
crate::operation::get_deployment_status::GetDeploymentStatusOutput {
deployment_status: self.deployment_status,
deployment_type: self.deployment_type,
error_details: self.error_details,
error_message: self.error_message,
updated_at: self.updated_at,
_request_id: self._request_id,
}
}
}