#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RejectDelegationRequestInput {
pub delegation_request_id: ::std::option::Option<::std::string::String>,
pub notes: ::std::option::Option<::std::string::String>,
}
impl RejectDelegationRequestInput {
pub fn delegation_request_id(&self) -> ::std::option::Option<&str> {
self.delegation_request_id.as_deref()
}
pub fn notes(&self) -> ::std::option::Option<&str> {
self.notes.as_deref()
}
}
impl RejectDelegationRequestInput {
pub fn builder() -> crate::operation::reject_delegation_request::builders::RejectDelegationRequestInputBuilder {
crate::operation::reject_delegation_request::builders::RejectDelegationRequestInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RejectDelegationRequestInputBuilder {
pub(crate) delegation_request_id: ::std::option::Option<::std::string::String>,
pub(crate) notes: ::std::option::Option<::std::string::String>,
}
impl RejectDelegationRequestInputBuilder {
pub fn delegation_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.delegation_request_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_delegation_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.delegation_request_id = input;
self
}
pub fn get_delegation_request_id(&self) -> &::std::option::Option<::std::string::String> {
&self.delegation_request_id
}
pub fn notes(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.notes = ::std::option::Option::Some(input.into());
self
}
pub fn set_notes(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.notes = input;
self
}
pub fn get_notes(&self) -> &::std::option::Option<::std::string::String> {
&self.notes
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::reject_delegation_request::RejectDelegationRequestInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::reject_delegation_request::RejectDelegationRequestInput {
delegation_request_id: self.delegation_request_id,
notes: self.notes,
})
}
}