AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
EndpointIdentifier.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 EndpointIdentifier() = default;
31 AWS_GLOBALACCELERATOR_API EndpointIdentifier(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GLOBALACCELERATOR_API EndpointIdentifier& 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 EndpointIdentifier& WithEndpointId(EndpointIdT&& value) {
53 SetEndpointId(std::forward<EndpointIdT>(value));
54 return *this;
55 }
57
59
69 inline bool GetClientIPPreservationEnabled() const { return m_clientIPPreservationEnabled; }
70 inline bool ClientIPPreservationEnabledHasBeenSet() const { return m_clientIPPreservationEnabledHasBeenSet; }
71 inline void SetClientIPPreservationEnabled(bool value) {
72 m_clientIPPreservationEnabledHasBeenSet = true;
73 m_clientIPPreservationEnabled = value;
74 }
77 return *this;
78 }
80 private:
81 Aws::String m_endpointId;
82
83 bool m_clientIPPreservationEnabled{false};
84 bool m_endpointIdHasBeenSet = false;
85 bool m_clientIPPreservationEnabledHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace GlobalAccelerator
90} // namespace Aws
AWS_GLOBALACCELERATOR_API EndpointIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API EndpointIdentifier()=default
EndpointIdentifier & WithEndpointId(EndpointIdT &&value)
EndpointIdentifier & WithClientIPPreservationEnabled(bool value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API EndpointIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue