#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DisassociateFeedInput {
pub id: ::std::option::Option<::std::string::String>,
pub associated_resource_name: ::std::option::Option<::std::string::String>,
pub dry_run: ::std::option::Option<bool>,
}
impl DisassociateFeedInput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn associated_resource_name(&self) -> ::std::option::Option<&str> {
self.associated_resource_name.as_deref()
}
pub fn dry_run(&self) -> ::std::option::Option<bool> {
self.dry_run
}
}
impl DisassociateFeedInput {
pub fn builder() -> crate::operation::disassociate_feed::builders::DisassociateFeedInputBuilder {
crate::operation::disassociate_feed::builders::DisassociateFeedInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateFeedInputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) associated_resource_name: ::std::option::Option<::std::string::String>,
pub(crate) dry_run: ::std::option::Option<bool>,
}
impl DisassociateFeedInputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn associated_resource_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.associated_resource_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_associated_resource_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.associated_resource_name = input;
self
}
pub fn get_associated_resource_name(&self) -> &::std::option::Option<::std::string::String> {
&self.associated_resource_name
}
pub fn dry_run(mut self, input: bool) -> Self {
self.dry_run = ::std::option::Option::Some(input);
self
}
pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
self.dry_run = input;
self
}
pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
&self.dry_run
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::disassociate_feed::DisassociateFeedInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::disassociate_feed::DisassociateFeedInput {
id: self.id,
associated_resource_name: self.associated_resource_name,
dry_run: self.dry_run,
})
}
}