#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateIngressPointInput {
pub ingress_point_id: ::std::option::Option<::std::string::String>,
pub ingress_point_name: ::std::option::Option<::std::string::String>,
pub status_to_update: ::std::option::Option<crate::types::IngressPointStatusToUpdate>,
pub rule_set_id: ::std::option::Option<::std::string::String>,
pub traffic_policy_id: ::std::option::Option<::std::string::String>,
pub ingress_point_configuration: ::std::option::Option<crate::types::IngressPointConfiguration>,
}
impl UpdateIngressPointInput {
pub fn ingress_point_id(&self) -> ::std::option::Option<&str> {
self.ingress_point_id.as_deref()
}
pub fn ingress_point_name(&self) -> ::std::option::Option<&str> {
self.ingress_point_name.as_deref()
}
pub fn status_to_update(&self) -> ::std::option::Option<&crate::types::IngressPointStatusToUpdate> {
self.status_to_update.as_ref()
}
pub fn rule_set_id(&self) -> ::std::option::Option<&str> {
self.rule_set_id.as_deref()
}
pub fn traffic_policy_id(&self) -> ::std::option::Option<&str> {
self.traffic_policy_id.as_deref()
}
pub fn ingress_point_configuration(&self) -> ::std::option::Option<&crate::types::IngressPointConfiguration> {
self.ingress_point_configuration.as_ref()
}
}
impl UpdateIngressPointInput {
pub fn builder() -> crate::operation::update_ingress_point::builders::UpdateIngressPointInputBuilder {
crate::operation::update_ingress_point::builders::UpdateIngressPointInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateIngressPointInputBuilder {
pub(crate) ingress_point_id: ::std::option::Option<::std::string::String>,
pub(crate) ingress_point_name: ::std::option::Option<::std::string::String>,
pub(crate) status_to_update: ::std::option::Option<crate::types::IngressPointStatusToUpdate>,
pub(crate) rule_set_id: ::std::option::Option<::std::string::String>,
pub(crate) traffic_policy_id: ::std::option::Option<::std::string::String>,
pub(crate) ingress_point_configuration: ::std::option::Option<crate::types::IngressPointConfiguration>,
}
impl UpdateIngressPointInputBuilder {
pub fn ingress_point_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ingress_point_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_ingress_point_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ingress_point_id = input;
self
}
pub fn get_ingress_point_id(&self) -> &::std::option::Option<::std::string::String> {
&self.ingress_point_id
}
pub fn ingress_point_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ingress_point_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_ingress_point_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ingress_point_name = input;
self
}
pub fn get_ingress_point_name(&self) -> &::std::option::Option<::std::string::String> {
&self.ingress_point_name
}
pub fn status_to_update(mut self, input: crate::types::IngressPointStatusToUpdate) -> Self {
self.status_to_update = ::std::option::Option::Some(input);
self
}
pub fn set_status_to_update(mut self, input: ::std::option::Option<crate::types::IngressPointStatusToUpdate>) -> Self {
self.status_to_update = input;
self
}
pub fn get_status_to_update(&self) -> &::std::option::Option<crate::types::IngressPointStatusToUpdate> {
&self.status_to_update
}
pub fn rule_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.rule_set_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_rule_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.rule_set_id = input;
self
}
pub fn get_rule_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.rule_set_id
}
pub fn traffic_policy_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.traffic_policy_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_traffic_policy_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.traffic_policy_id = input;
self
}
pub fn get_traffic_policy_id(&self) -> &::std::option::Option<::std::string::String> {
&self.traffic_policy_id
}
pub fn ingress_point_configuration(mut self, input: crate::types::IngressPointConfiguration) -> Self {
self.ingress_point_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_ingress_point_configuration(mut self, input: ::std::option::Option<crate::types::IngressPointConfiguration>) -> Self {
self.ingress_point_configuration = input;
self
}
pub fn get_ingress_point_configuration(&self) -> &::std::option::Option<crate::types::IngressPointConfiguration> {
&self.ingress_point_configuration
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_ingress_point::UpdateIngressPointInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_ingress_point::UpdateIngressPointInput {
ingress_point_id: self.ingress_point_id,
ingress_point_name: self.ingress_point_name,
status_to_update: self.status_to_update,
rule_set_id: self.rule_set_id,
traffic_policy_id: self.traffic_policy_id,
ingress_point_configuration: self.ingress_point_configuration,
})
}
}