aws_sdk_appmesh/types/
_tcp_route_match.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct TcpRouteMatch {
7 pub port: ::std::option::Option<i32>,
9}
10impl TcpRouteMatch {
11 pub fn port(&self) -> ::std::option::Option<i32> {
13 self.port
14 }
15}
16impl TcpRouteMatch {
17 pub fn builder() -> crate::types::builders::TcpRouteMatchBuilder {
19 crate::types::builders::TcpRouteMatchBuilder::default()
20 }
21}
22
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct TcpRouteMatchBuilder {
27 pub(crate) port: ::std::option::Option<i32>,
28}
29impl TcpRouteMatchBuilder {
30 pub fn port(mut self, input: i32) -> Self {
32 self.port = ::std::option::Option::Some(input);
33 self
34 }
35 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
37 self.port = input;
38 self
39 }
40 pub fn get_port(&self) -> &::std::option::Option<i32> {
42 &self.port
43 }
44 pub fn build(self) -> crate::types::TcpRouteMatch {
46 crate::types::TcpRouteMatch { port: self.port }
47 }
48}