AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/InstanceMetadataState.h>
9#include <aws/lightsail/model/HttpTokens.h>
10#include <aws/lightsail/model/HttpEndpoint.h>
11#include <aws/lightsail/model/HttpProtocolIpv6.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_LIGHTSAIL_API InstanceMetadataOptions();
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const InstanceMetadataState& GetState() const{ return m_state; }
52 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
53 inline void SetState(const InstanceMetadataState& value) { m_stateHasBeenSet = true; m_state = value; }
54 inline void SetState(InstanceMetadataState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
55 inline InstanceMetadataOptions& WithState(const InstanceMetadataState& value) { SetState(value); return *this;}
56 inline InstanceMetadataOptions& WithState(InstanceMetadataState&& value) { SetState(std::move(value)); return *this;}
58
60
78 inline const HttpTokens& GetHttpTokens() const{ return m_httpTokens; }
79 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
80 inline void SetHttpTokens(const HttpTokens& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
81 inline void SetHttpTokens(HttpTokens&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
82 inline InstanceMetadataOptions& WithHttpTokens(const HttpTokens& value) { SetHttpTokens(value); return *this;}
83 inline InstanceMetadataOptions& WithHttpTokens(HttpTokens&& value) { SetHttpTokens(std::move(value)); return *this;}
85
87
92 inline const HttpEndpoint& GetHttpEndpoint() const{ return m_httpEndpoint; }
93 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
94 inline void SetHttpEndpoint(const HttpEndpoint& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
95 inline void SetHttpEndpoint(HttpEndpoint&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
96 inline InstanceMetadataOptions& WithHttpEndpoint(const HttpEndpoint& value) { SetHttpEndpoint(value); return *this;}
97 inline InstanceMetadataOptions& WithHttpEndpoint(HttpEndpoint&& value) { SetHttpEndpoint(std::move(value)); return *this;}
99
101
105 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
106 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
107 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
110
112
116 inline const HttpProtocolIpv6& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
117 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
118 inline void SetHttpProtocolIpv6(const HttpProtocolIpv6& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
119 inline void SetHttpProtocolIpv6(HttpProtocolIpv6&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
121 inline InstanceMetadataOptions& WithHttpProtocolIpv6(HttpProtocolIpv6&& value) { SetHttpProtocolIpv6(std::move(value)); return *this;}
123 private:
124
125 InstanceMetadataState m_state;
126 bool m_stateHasBeenSet = false;
127
128 HttpTokens m_httpTokens;
129 bool m_httpTokensHasBeenSet = false;
130
131 HttpEndpoint m_httpEndpoint;
132 bool m_httpEndpointHasBeenSet = false;
133
134 int m_httpPutResponseHopLimit;
135 bool m_httpPutResponseHopLimitHasBeenSet = false;
136
137 HttpProtocolIpv6 m_httpProtocolIpv6;
138 bool m_httpProtocolIpv6HasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Lightsail
143} // namespace Aws
InstanceMetadataOptions & WithState(const InstanceMetadataState &value)
AWS_LIGHTSAIL_API InstanceMetadataOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceMetadataOptions & WithHttpProtocolIpv6(const HttpProtocolIpv6 &value)
const InstanceMetadataState & GetState() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const InstanceMetadataState &value)
InstanceMetadataOptions & WithHttpProtocolIpv6(HttpProtocolIpv6 &&value)
InstanceMetadataOptions & WithHttpEndpoint(const HttpEndpoint &value)
void SetHttpProtocolIpv6(const HttpProtocolIpv6 &value)
AWS_LIGHTSAIL_API InstanceMetadataOptions(Aws::Utils::Json::JsonView jsonValue)
InstanceMetadataOptions & WithHttpTokens(const HttpTokens &value)
InstanceMetadataOptions & WithHttpTokens(HttpTokens &&value)
InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
InstanceMetadataOptions & WithState(InstanceMetadataState &&value)
InstanceMetadataOptions & WithHttpEndpoint(HttpEndpoint &&value)
Aws::Utils::Json::JsonValue JsonValue