aws_sdk_dataexchange/operation/revoke_revision/
_revoke_revision_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RevokeRevisionInput {
pub data_set_id: ::std::option::Option<::std::string::String>,
pub revision_id: ::std::option::Option<::std::string::String>,
pub revocation_comment: ::std::option::Option<::std::string::String>,
}
impl RevokeRevisionInput {
pub fn data_set_id(&self) -> ::std::option::Option<&str> {
self.data_set_id.as_deref()
}
pub fn revision_id(&self) -> ::std::option::Option<&str> {
self.revision_id.as_deref()
}
pub fn revocation_comment(&self) -> ::std::option::Option<&str> {
self.revocation_comment.as_deref()
}
}
impl RevokeRevisionInput {
pub fn builder() -> crate::operation::revoke_revision::builders::RevokeRevisionInputBuilder {
crate::operation::revoke_revision::builders::RevokeRevisionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RevokeRevisionInputBuilder {
pub(crate) data_set_id: ::std::option::Option<::std::string::String>,
pub(crate) revision_id: ::std::option::Option<::std::string::String>,
pub(crate) revocation_comment: ::std::option::Option<::std::string::String>,
}
impl RevokeRevisionInputBuilder {
pub fn data_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_set_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_data_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_set_id = input;
self
}
pub fn get_data_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.data_set_id
}
pub fn revision_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.revision_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_revision_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.revision_id = input;
self
}
pub fn get_revision_id(&self) -> &::std::option::Option<::std::string::String> {
&self.revision_id
}
pub fn revocation_comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.revocation_comment = ::std::option::Option::Some(input.into());
self
}
pub fn set_revocation_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.revocation_comment = input;
self
}
pub fn get_revocation_comment(&self) -> &::std::option::Option<::std::string::String> {
&self.revocation_comment
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::revoke_revision::RevokeRevisionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::revoke_revision::RevokeRevisionInput {
data_set_id: self.data_set_id,
revision_id: self.revision_id,
revocation_comment: self.revocation_comment,
})
}
}