aws_sdk_securityhub/types/
_aws_events_endpoint_routing_config_failover_config_primary_details.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails {
7 pub health_check: ::std::option::Option<::std::string::String>,
9}
10impl AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails {
11 pub fn health_check(&self) -> ::std::option::Option<&str> {
13 self.health_check.as_deref()
14 }
15}
16impl AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails {
17 pub fn builder() -> crate::types::builders::AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetailsBuilder {
19 crate::types::builders::AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetailsBuilder::default()
20 }
21}
22
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetailsBuilder {
27 pub(crate) health_check: ::std::option::Option<::std::string::String>,
28}
29impl AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetailsBuilder {
30 pub fn health_check(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32 self.health_check = ::std::option::Option::Some(input.into());
33 self
34 }
35 pub fn set_health_check(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37 self.health_check = input;
38 self
39 }
40 pub fn get_health_check(&self) -> &::std::option::Option<::std::string::String> {
42 &self.health_check
43 }
44 pub fn build(self) -> crate::types::AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails {
46 crate::types::AwsEventsEndpointRoutingConfigFailoverConfigPrimaryDetails {
47 health_check: self.health_check,
48 }
49 }
50}