AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EndpointConfiguration.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GlobalAccelerator
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GLOBALACCELERATOR_API EndpointConfiguration() = default;
36 AWS_GLOBALACCELERATOR_API EndpointConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API EndpointConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
51 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
52 template<typename EndpointIdT = Aws::String>
53 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
54 template<typename EndpointIdT = Aws::String>
55 EndpointConfiguration& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
57
59
69 inline int GetWeight() const { return m_weight; }
70 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
71 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
72 inline EndpointConfiguration& WithWeight(int value) { SetWeight(value); return *this;}
74
76
91 inline bool GetClientIPPreservationEnabled() const { return m_clientIPPreservationEnabled; }
92 inline bool ClientIPPreservationEnabledHasBeenSet() const { return m_clientIPPreservationEnabledHasBeenSet; }
93 inline void SetClientIPPreservationEnabled(bool value) { m_clientIPPreservationEnabledHasBeenSet = true; m_clientIPPreservationEnabled = value; }
96
98
103 inline const Aws::String& GetAttachmentArn() const { return m_attachmentArn; }
104 inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
105 template<typename AttachmentArnT = Aws::String>
106 void SetAttachmentArn(AttachmentArnT&& value) { m_attachmentArnHasBeenSet = true; m_attachmentArn = std::forward<AttachmentArnT>(value); }
107 template<typename AttachmentArnT = Aws::String>
108 EndpointConfiguration& WithAttachmentArn(AttachmentArnT&& value) { SetAttachmentArn(std::forward<AttachmentArnT>(value)); return *this;}
110 private:
111
112 Aws::String m_endpointId;
113 bool m_endpointIdHasBeenSet = false;
114
115 int m_weight{0};
116 bool m_weightHasBeenSet = false;
117
118 bool m_clientIPPreservationEnabled{false};
119 bool m_clientIPPreservationEnabledHasBeenSet = false;
120
121 Aws::String m_attachmentArn;
122 bool m_attachmentArnHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace GlobalAccelerator
127} // 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