AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
EndpointDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
9#include <aws/globalaccelerator/model/HealthState.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
30 public:
31 AWS_GLOBALACCELERATOR_API EndpointDescription() = default;
32 AWS_GLOBALACCELERATOR_API EndpointDescription(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLOBALACCELERATOR_API EndpointDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
45 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
46 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
47 template <typename EndpointIdT = Aws::String>
48 void SetEndpointId(EndpointIdT&& value) {
49 m_endpointIdHasBeenSet = true;
50 m_endpointId = std::forward<EndpointIdT>(value);
51 }
52 template <typename EndpointIdT = Aws::String>
53 EndpointDescription& WithEndpointId(EndpointIdT&& value) {
54 SetEndpointId(std::forward<EndpointIdT>(value));
55 return *this;
56 }
58
60
70 inline int GetWeight() const { return m_weight; }
71 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
72 inline void SetWeight(int value) {
73 m_weightHasBeenSet = true;
74 m_weight = value;
75 }
76 inline EndpointDescription& WithWeight(int value) {
77 SetWeight(value);
78 return *this;
79 }
81
83
86 inline HealthState GetHealthState() const { return m_healthState; }
87 inline bool HealthStateHasBeenSet() const { return m_healthStateHasBeenSet; }
88 inline void SetHealthState(HealthState value) {
89 m_healthStateHasBeenSet = true;
90 m_healthState = value;
91 }
93 SetHealthState(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetHealthReason() const { return m_healthReason; }
103 inline bool HealthReasonHasBeenSet() const { return m_healthReasonHasBeenSet; }
104 template <typename HealthReasonT = Aws::String>
105 void SetHealthReason(HealthReasonT&& value) {
106 m_healthReasonHasBeenSet = true;
107 m_healthReason = std::forward<HealthReasonT>(value);
108 }
109 template <typename HealthReasonT = Aws::String>
110 EndpointDescription& WithHealthReason(HealthReasonT&& value) {
111 SetHealthReason(std::forward<HealthReasonT>(value));
112 return *this;
113 }
115
117
136 inline bool GetClientIPPreservationEnabled() const { return m_clientIPPreservationEnabled; }
137 inline bool ClientIPPreservationEnabledHasBeenSet() const { return m_clientIPPreservationEnabledHasBeenSet; }
138 inline void SetClientIPPreservationEnabled(bool value) {
139 m_clientIPPreservationEnabledHasBeenSet = true;
140 m_clientIPPreservationEnabled = value;
141 }
144 return *this;
145 }
147 private:
148 Aws::String m_endpointId;
149
150 int m_weight{0};
151
152 HealthState m_healthState{HealthState::NOT_SET};
153
154 Aws::String m_healthReason;
155
156 bool m_clientIPPreservationEnabled{false};
157 bool m_endpointIdHasBeenSet = false;
158 bool m_weightHasBeenSet = false;
159 bool m_healthStateHasBeenSet = false;
160 bool m_healthReasonHasBeenSet = false;
161 bool m_clientIPPreservationEnabledHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace GlobalAccelerator
166} // namespace Aws
AWS_GLOBALACCELERATOR_API EndpointDescription()=default
EndpointDescription & WithHealthState(HealthState value)
EndpointDescription & WithClientIPPreservationEnabled(bool value)
AWS_GLOBALACCELERATOR_API EndpointDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointDescription & WithEndpointId(EndpointIdT &&value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API EndpointDescription(Aws::Utils::Json::JsonView jsonValue)
EndpointDescription & WithHealthReason(HealthReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue