AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CustomRoutingDestinationDescription.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/globalaccelerator/model/Protocol.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GlobalAccelerator
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_GLOBALACCELERATOR_API CustomRoutingDestinationDescription() = default;
40 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline int GetFromPort() const { return m_fromPort; }
49 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
50 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
51 inline CustomRoutingDestinationDescription& WithFromPort(int value) { SetFromPort(value); return *this;}
53
55
59 inline int GetToPort() const { return m_toPort; }
60 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
61 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
62 inline CustomRoutingDestinationDescription& WithToPort(int value) { SetToPort(value); return *this;}
64
66
70 inline const Aws::Vector<Protocol>& GetProtocols() const { return m_protocols; }
71 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
72 template<typename ProtocolsT = Aws::Vector<Protocol>>
73 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
74 template<typename ProtocolsT = Aws::Vector<Protocol>>
75 CustomRoutingDestinationDescription& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
76 inline CustomRoutingDestinationDescription& AddProtocols(Protocol value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
78 private:
79
80 int m_fromPort{0};
81 bool m_fromPortHasBeenSet = false;
82
83 int m_toPort{0};
84 bool m_toPortHasBeenSet = false;
85
86 Aws::Vector<Protocol> m_protocols;
87 bool m_protocolsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace GlobalAccelerator
92} // namespace Aws
AWS_GLOBALACCELERATOR_API CustomRoutingDestinationDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API CustomRoutingDestinationDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
CustomRoutingDestinationDescription & WithProtocols(ProtocolsT &&value)
AWS_GLOBALACCELERATOR_API CustomRoutingDestinationDescription()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue