AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/HttpEndpoint.h>
9#include <aws/lightsail/model/HttpProtocolIpv6.h>
10#include <aws/lightsail/model/HttpTokens.h>
11#include <aws/lightsail/model/InstanceMetadataState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
31 public:
32 AWS_LIGHTSAIL_API InstanceMetadataOptions() = default;
35 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline InstanceMetadataState GetState() const { return m_state; }
46 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
47 inline void SetState(InstanceMetadataState value) {
48 m_stateHasBeenSet = true;
49 m_state = value;
50 }
52 SetState(value);
53 return *this;
54 }
56
58
76 inline HttpTokens GetHttpTokens() const { return m_httpTokens; }
77 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
78 inline void SetHttpTokens(HttpTokens value) {
79 m_httpTokensHasBeenSet = true;
80 m_httpTokens = value;
81 }
83 SetHttpTokens(value);
84 return *this;
85 }
87
89
94 inline HttpEndpoint GetHttpEndpoint() const { return m_httpEndpoint; }
95 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
96 inline void SetHttpEndpoint(HttpEndpoint value) {
97 m_httpEndpointHasBeenSet = true;
98 m_httpEndpoint = value;
99 }
101 SetHttpEndpoint(value);
102 return *this;
103 }
105
107
111 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
112 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
113 inline void SetHttpPutResponseHopLimit(int value) {
114 m_httpPutResponseHopLimitHasBeenSet = true;
115 m_httpPutResponseHopLimit = value;
116 }
119 return *this;
120 }
122
124
128 inline HttpProtocolIpv6 GetHttpProtocolIpv6() const { return m_httpProtocolIpv6; }
129 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
131 m_httpProtocolIpv6HasBeenSet = true;
132 m_httpProtocolIpv6 = value;
133 }
135 SetHttpProtocolIpv6(value);
136 return *this;
137 }
139 private:
141
142 HttpTokens m_httpTokens{HttpTokens::NOT_SET};
143
144 HttpEndpoint m_httpEndpoint{HttpEndpoint::NOT_SET};
145
146 int m_httpPutResponseHopLimit{0};
147
149 bool m_stateHasBeenSet = false;
150 bool m_httpTokensHasBeenSet = false;
151 bool m_httpEndpointHasBeenSet = false;
152 bool m_httpPutResponseHopLimitHasBeenSet = false;
153 bool m_httpProtocolIpv6HasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Lightsail
158} // namespace Aws
AWS_LIGHTSAIL_API InstanceMetadataOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceMetadataOptions & WithHttpTokens(HttpTokens value)
InstanceMetadataOptions & WithHttpProtocolIpv6(HttpProtocolIpv6 value)
AWS_LIGHTSAIL_API InstanceMetadataOptions()=default
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceMetadataOptions & WithHttpEndpoint(HttpEndpoint value)
AWS_LIGHTSAIL_API InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue)
InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
InstanceMetadataOptions & WithState(InstanceMetadataState value)
Aws::Utils::Json::JsonValue JsonValue