AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CustomRoutingDestinationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
9#include <aws/globalaccelerator/model/CustomRoutingProtocol.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GlobalAccelerator {
21namespace Model {
22
31 public:
32 AWS_GLOBALACCELERATOR_API CustomRoutingDestinationConfiguration() = default;
35 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetFromPort() const { return m_fromPort; }
43 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
44 inline void SetFromPort(int value) {
45 m_fromPortHasBeenSet = true;
46 m_fromPort = value;
47 }
49 SetFromPort(value);
50 return *this;
51 }
53
55
59 inline int GetToPort() const { return m_toPort; }
60 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
61 inline void SetToPort(int value) {
62 m_toPortHasBeenSet = true;
63 m_toPort = value;
64 }
66 SetToPort(value);
67 return *this;
68 }
70
72
76 inline const Aws::Vector<CustomRoutingProtocol>& GetProtocols() const { return m_protocols; }
77 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
78 template <typename ProtocolsT = Aws::Vector<CustomRoutingProtocol>>
79 void SetProtocols(ProtocolsT&& value) {
80 m_protocolsHasBeenSet = true;
81 m_protocols = std::forward<ProtocolsT>(value);
82 }
83 template <typename ProtocolsT = Aws::Vector<CustomRoutingProtocol>>
85 SetProtocols(std::forward<ProtocolsT>(value));
86 return *this;
87 }
89 m_protocolsHasBeenSet = true;
90 m_protocols.push_back(value);
91 return *this;
92 }
94 private:
95 int m_fromPort{0};
96
97 int m_toPort{0};
98
100 bool m_fromPortHasBeenSet = false;
101 bool m_toPortHasBeenSet = false;
102 bool m_protocolsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GlobalAccelerator
107} // namespace Aws
CustomRoutingDestinationConfiguration & WithProtocols(ProtocolsT &&value)
AWS_GLOBALACCELERATOR_API CustomRoutingDestinationConfiguration()=default
CustomRoutingDestinationConfiguration & AddProtocols(CustomRoutingProtocol value)
AWS_GLOBALACCELERATOR_API CustomRoutingDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API CustomRoutingDestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue