#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDepotUrlInput {
pub environment_id: ::std::option::Option<::std::string::String>,
pub rotate: ::std::option::Option<bool>,
}
impl GetDepotUrlInput {
pub fn environment_id(&self) -> ::std::option::Option<&str> {
self.environment_id.as_deref()
}
pub fn rotate(&self) -> ::std::option::Option<bool> {
self.rotate
}
}
impl GetDepotUrlInput {
pub fn builder() -> crate::operation::get_depot_url::builders::GetDepotUrlInputBuilder {
crate::operation::get_depot_url::builders::GetDepotUrlInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDepotUrlInputBuilder {
pub(crate) environment_id: ::std::option::Option<::std::string::String>,
pub(crate) rotate: ::std::option::Option<bool>,
}
impl GetDepotUrlInputBuilder {
pub fn environment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_id = input;
self
}
pub fn get_environment_id(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_id
}
pub fn rotate(mut self, input: bool) -> Self {
self.rotate = ::std::option::Option::Some(input);
self
}
pub fn set_rotate(mut self, input: ::std::option::Option<bool>) -> Self {
self.rotate = input;
self
}
pub fn get_rotate(&self) -> &::std::option::Option<bool> {
&self.rotate
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_depot_url::GetDepotUrlInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_depot_url::GetDepotUrlInput {
environment_id: self.environment_id,
rotate: self.rotate,
})
}
}