aws_sdk_vpclattice/operation/get_rule/
_get_rule_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetRuleInput {
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 GetRuleInput {
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 GetRuleInput {
pub fn builder() -> crate::operation::get_rule::builders::GetRuleInputBuilder {
crate::operation::get_rule::builders::GetRuleInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetRuleInputBuilder {
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 GetRuleInputBuilder {
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::get_rule::GetRuleInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_rule::GetRuleInput {
service_identifier: self.service_identifier,
listener_identifier: self.listener_identifier,
rule_identifier: self.rule_identifier,
})
}
}