AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EndpointDescription.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/globalaccelerator/model/HealthState.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
34 {
35 public:
36 AWS_GLOBALACCELERATOR_API EndpointDescription() = default;
37 AWS_GLOBALACCELERATOR_API EndpointDescription(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLOBALACCELERATOR_API EndpointDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
51 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
52 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
53 template<typename EndpointIdT = Aws::String>
54 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
55 template<typename EndpointIdT = Aws::String>
56 EndpointDescription& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
58
60
70 inline int GetWeight() const { return m_weight; }
71 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
72 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
73 inline EndpointDescription& WithWeight(int value) { SetWeight(value); return *this;}
75
77
80 inline HealthState GetHealthState() const { return m_healthState; }
81 inline bool HealthStateHasBeenSet() const { return m_healthStateHasBeenSet; }
82 inline void SetHealthState(HealthState value) { m_healthStateHasBeenSet = true; m_healthState = value; }
83 inline EndpointDescription& WithHealthState(HealthState value) { SetHealthState(value); return *this;}
85
87
90 inline const Aws::String& GetHealthReason() const { return m_healthReason; }
91 inline bool HealthReasonHasBeenSet() const { return m_healthReasonHasBeenSet; }
92 template<typename HealthReasonT = Aws::String>
93 void SetHealthReason(HealthReasonT&& value) { m_healthReasonHasBeenSet = true; m_healthReason = std::forward<HealthReasonT>(value); }
94 template<typename HealthReasonT = Aws::String>
95 EndpointDescription& WithHealthReason(HealthReasonT&& value) { SetHealthReason(std::forward<HealthReasonT>(value)); return *this;}
97
99
114 inline bool GetClientIPPreservationEnabled() const { return m_clientIPPreservationEnabled; }
115 inline bool ClientIPPreservationEnabledHasBeenSet() const { return m_clientIPPreservationEnabledHasBeenSet; }
116 inline void SetClientIPPreservationEnabled(bool value) { m_clientIPPreservationEnabledHasBeenSet = true; m_clientIPPreservationEnabled = value; }
119 private:
120
121 Aws::String m_endpointId;
122 bool m_endpointIdHasBeenSet = false;
123
124 int m_weight{0};
125 bool m_weightHasBeenSet = false;
126
127 HealthState m_healthState{HealthState::NOT_SET};
128 bool m_healthStateHasBeenSet = false;
129
130 Aws::String m_healthReason;
131 bool m_healthReasonHasBeenSet = false;
132
133 bool m_clientIPPreservationEnabled{false};
134 bool m_clientIPPreservationEnabledHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace GlobalAccelerator
139} // 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