aws_sdk_vpclattice/operation/delete_rule/
_delete_rule_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteRuleInput {
pub service_identifier: ::std::option::Option<::std::string::String>,
pub listener_identifier: ::std::option::Option<::std::string::String>,
pub rule_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteRuleInput {
pub fn service_identifier(&self) -> ::std::option::Option<&str> {
self.service_identifier.as_deref()
}
pub fn listener_identifier(&self) -> ::std::option::Option<&str> {
self.listener_identifier.as_deref()
}
pub fn rule_identifier(&self) -> ::std::option::Option<&str> {
self.rule_identifier.as_deref()
}
}
impl DeleteRuleInput {
pub fn builder() -> crate::operation::delete_rule::builders::DeleteRuleInputBuilder {
crate::operation::delete_rule::builders::DeleteRuleInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteRuleInputBuilder {
pub(crate) service_identifier: ::std::option::Option<::std::string::String>,
pub(crate) listener_identifier: ::std::option::Option<::std::string::String>,
pub(crate) rule_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteRuleInputBuilder {
pub fn service_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_identifier = input;
self
}
pub fn get_service_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.service_identifier
}
pub fn listener_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.listener_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_listener_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.listener_identifier = input;
self
}
pub fn get_listener_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.listener_identifier
}
pub fn rule_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.rule_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_rule_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.rule_identifier = input;
self
}
pub fn get_rule_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.rule_identifier
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_rule::DeleteRuleInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_rule::DeleteRuleInput {
service_identifier: self.service_identifier,
listener_identifier: self.listener_identifier,
rule_identifier: self.rule_identifier,
})
}
}