#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProfileKeyInput {
pub profile_id: ::std::option::Option<::std::string::String>,
pub key_name: ::std::option::Option<::std::string::String>,
pub values: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub domain_name: ::std::option::Option<::std::string::String>,
}
impl DeleteProfileKeyInput {
pub fn profile_id(&self) -> ::std::option::Option<&str> {
self.profile_id.as_deref()
}
pub fn key_name(&self) -> ::std::option::Option<&str> {
self.key_name.as_deref()
}
pub fn values(&self) -> &[::std::string::String] {
self.values.as_deref().unwrap_or_default()
}
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
}
impl DeleteProfileKeyInput {
pub fn builder() -> crate::operation::delete_profile_key::builders::DeleteProfileKeyInputBuilder {
crate::operation::delete_profile_key::builders::DeleteProfileKeyInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteProfileKeyInputBuilder {
pub(crate) profile_id: ::std::option::Option<::std::string::String>,
pub(crate) key_name: ::std::option::Option<::std::string::String>,
pub(crate) values: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
}
impl DeleteProfileKeyInputBuilder {
pub fn profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_id = input;
self
}
pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_id
}
pub fn key_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.key_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_key_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.key_name = input;
self
}
pub fn get_key_name(&self) -> &::std::option::Option<::std::string::String> {
&self.key_name
}
pub fn values(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.values.unwrap_or_default();
v.push(input.into());
self.values = ::std::option::Option::Some(v);
self
}
pub fn set_values(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.values = input;
self
}
pub fn get_values(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.values
}
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_profile_key::DeleteProfileKeyInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_profile_key::DeleteProfileKeyInput {
profile_id: self.profile_id,
key_name: self.key_name,
values: self.values,
domain_name: self.domain_name,
})
}
}