#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Deployment {
#[doc(hidden)]
pub created_at: std::option::Option<std::string::String>,
#[doc(hidden)]
pub deployment_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub deployment_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub deployment_type: std::option::Option<crate::types::DeploymentType>,
#[doc(hidden)]
pub group_arn: std::option::Option<std::string::String>,
}
impl Deployment {
pub fn created_at(&self) -> std::option::Option<&str> {
self.created_at.as_deref()
}
pub fn deployment_arn(&self) -> std::option::Option<&str> {
self.deployment_arn.as_deref()
}
pub fn deployment_id(&self) -> std::option::Option<&str> {
self.deployment_id.as_deref()
}
pub fn deployment_type(&self) -> std::option::Option<&crate::types::DeploymentType> {
self.deployment_type.as_ref()
}
pub fn group_arn(&self) -> std::option::Option<&str> {
self.group_arn.as_deref()
}
}
impl Deployment {
pub fn builder() -> crate::types::builders::DeploymentBuilder {
crate::types::builders::DeploymentBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeploymentBuilder {
pub(crate) created_at: std::option::Option<std::string::String>,
pub(crate) deployment_arn: std::option::Option<std::string::String>,
pub(crate) deployment_id: std::option::Option<std::string::String>,
pub(crate) deployment_type: std::option::Option<crate::types::DeploymentType>,
pub(crate) group_arn: std::option::Option<std::string::String>,
}
impl DeploymentBuilder {
pub fn created_at(mut self, input: impl Into<std::string::String>) -> Self {
self.created_at = Some(input.into());
self
}
pub fn set_created_at(mut self, input: std::option::Option<std::string::String>) -> Self {
self.created_at = input;
self
}
pub fn deployment_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.deployment_arn = Some(input.into());
self
}
pub fn set_deployment_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.deployment_arn = input;
self
}
pub fn deployment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.deployment_id = Some(input.into());
self
}
pub fn set_deployment_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.deployment_id = 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 group_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.group_arn = Some(input.into());
self
}
pub fn set_group_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.group_arn = input;
self
}
pub fn build(self) -> crate::types::Deployment {
crate::types::Deployment {
created_at: self.created_at,
deployment_arn: self.deployment_arn,
deployment_id: self.deployment_id,
deployment_type: self.deployment_type,
group_arn: self.group_arn,
}
}
}