AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
EndpointConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GlobalAccelerator {
20namespace Model {
21
29 public:
30 AWS_GLOBALACCELERATOR_API EndpointConfiguration() = default;
31 AWS_GLOBALACCELERATOR_API EndpointConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GLOBALACCELERATOR_API EndpointConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
44 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
45 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
46 template <typename EndpointIdT = Aws::String>
47 void SetEndpointId(EndpointIdT&& value) {
48 m_endpointIdHasBeenSet = true;
49 m_endpointId = std::forward<EndpointIdT>(value);
50 }
51 template <typename EndpointIdT = Aws::String>
52 EndpointConfiguration& WithEndpointId(EndpointIdT&& value) {
53 SetEndpointId(std::forward<EndpointIdT>(value));
54 return *this;
55 }
57
59
69 inline int GetWeight() const { return m_weight; }
70 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
71 inline void SetWeight(int value) {
72 m_weightHasBeenSet = true;
73 m_weight = value;
74 }
75 inline EndpointConfiguration& WithWeight(int value) {
76 SetWeight(value);
77 return *this;
78 }
80
82
100 inline bool GetClientIPPreservationEnabled() const { return m_clientIPPreservationEnabled; }
101 inline bool ClientIPPreservationEnabledHasBeenSet() const { return m_clientIPPreservationEnabledHasBeenSet; }
102 inline void SetClientIPPreservationEnabled(bool value) {
103 m_clientIPPreservationEnabledHasBeenSet = true;
104 m_clientIPPreservationEnabled = value;
105 }
108 return *this;
109 }
111
113
118 inline const Aws::String& GetAttachmentArn() const { return m_attachmentArn; }
119 inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
120 template <typename AttachmentArnT = Aws::String>
121 void SetAttachmentArn(AttachmentArnT&& value) {
122 m_attachmentArnHasBeenSet = true;
123 m_attachmentArn = std::forward<AttachmentArnT>(value);
124 }
125 template <typename AttachmentArnT = Aws::String>
126 EndpointConfiguration& WithAttachmentArn(AttachmentArnT&& value) {
127 SetAttachmentArn(std::forward<AttachmentArnT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_endpointId;
133
134 int m_weight{0};
135
136 bool m_clientIPPreservationEnabled{false};
137
138 Aws::String m_attachmentArn;
139 bool m_endpointIdHasBeenSet = false;
140 bool m_weightHasBeenSet = false;
141 bool m_clientIPPreservationEnabledHasBeenSet = false;
142 bool m_attachmentArnHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace GlobalAccelerator
147} // namespace Aws
AWS_GLOBALACCELERATOR_API EndpointConfiguration()=default
EndpointConfiguration & WithEndpointId(EndpointIdT &&value)
AWS_GLOBALACCELERATOR_API EndpointConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API EndpointConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointConfiguration & WithAttachmentArn(AttachmentArnT &&value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointConfiguration & WithClientIPPreservationEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue