#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UnlabelParameterVersionOutput {
pub removed_labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub invalid_labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
_request_id: Option<String>,
}
impl UnlabelParameterVersionOutput {
pub fn removed_labels(&self) -> &[::std::string::String] {
self.removed_labels.as_deref().unwrap_or_default()
}
pub fn invalid_labels(&self) -> &[::std::string::String] {
self.invalid_labels.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for UnlabelParameterVersionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UnlabelParameterVersionOutput {
pub fn builder() -> crate::operation::unlabel_parameter_version::builders::UnlabelParameterVersionOutputBuilder {
crate::operation::unlabel_parameter_version::builders::UnlabelParameterVersionOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UnlabelParameterVersionOutputBuilder {
pub(crate) removed_labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) invalid_labels: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
_request_id: Option<String>,
}
impl UnlabelParameterVersionOutputBuilder {
pub fn removed_labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.removed_labels.unwrap_or_default();
v.push(input.into());
self.removed_labels = ::std::option::Option::Some(v);
self
}
pub fn set_removed_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.removed_labels = input;
self
}
pub fn get_removed_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.removed_labels
}
pub fn invalid_labels(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.invalid_labels.unwrap_or_default();
v.push(input.into());
self.invalid_labels = ::std::option::Option::Some(v);
self
}
pub fn set_invalid_labels(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.invalid_labels = input;
self
}
pub fn get_invalid_labels(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.invalid_labels
}
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::unlabel_parameter_version::UnlabelParameterVersionOutput {
crate::operation::unlabel_parameter_version::UnlabelParameterVersionOutput {
removed_labels: self.removed_labels,
invalid_labels: self.invalid_labels,
_request_id: self._request_id,
}
}
}