AWS SDK for C++  1.9.65
AWS SDK for C++
InstanceMetadataOptionsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
50  inline const InstanceMetadataOptionsState& GetState() const{ return m_state; }
51 
58  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
59 
66  inline void SetState(const InstanceMetadataOptionsState& value) { m_stateHasBeenSet = true; m_state = value; }
67 
74  inline void SetState(InstanceMetadataOptionsState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
75 
82  inline InstanceMetadataOptionsResponse& WithState(const InstanceMetadataOptionsState& value) { SetState(value); return *this;}
83 
90  inline InstanceMetadataOptionsResponse& WithState(InstanceMetadataOptionsState&& value) { SetState(std::move(value)); return *this;}
91 
92 
106  inline const HttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
107 
121  inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
122 
136  inline void SetHttpTokens(const HttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
137 
151  inline void SetHttpTokens(HttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
152 
166  inline InstanceMetadataOptionsResponse& WithHttpTokens(const HttpTokensState& value) { SetHttpTokens(value); return *this;}
167 
181  inline InstanceMetadataOptionsResponse& WithHttpTokens(HttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
182 
183 
189  inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
190 
196  inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
197 
203  inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
204 
210  inline InstanceMetadataOptionsResponse& WithHttpPutResponseHopLimit(int value) { SetHttpPutResponseHopLimit(value); return *this;}
211 
212 
220  inline const InstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
221 
229  inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
230 
238  inline void SetHttpEndpoint(const InstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
239 
247  inline void SetHttpEndpoint(InstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
248 
256  inline InstanceMetadataOptionsResponse& WithHttpEndpoint(const InstanceMetadataEndpointState& value) { SetHttpEndpoint(value); return *this;}
257 
265  inline InstanceMetadataOptionsResponse& WithHttpEndpoint(InstanceMetadataEndpointState&& value) { SetHttpEndpoint(std::move(value)); return *this;}
266 
267  private:
268 
270  bool m_stateHasBeenSet;
271 
272  HttpTokensState m_httpTokens;
273  bool m_httpTokensHasBeenSet;
274 
275  int m_httpPutResponseHopLimit;
276  bool m_httpPutResponseHopLimitHasBeenSet;
277 
278  InstanceMetadataEndpointState m_httpEndpoint;
279  bool m_httpEndpointHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace EC2
284 } // namespace Aws
Aws::EC2::Model::InstanceMetadataOptionsResponse::SetState
void SetState(const InstanceMetadataOptionsState &value)
Definition: InstanceMetadataOptionsResponse.h:66
Aws::EC2::Model::InstanceMetadataOptionsResponse::SetHttpEndpoint
void SetHttpEndpoint(const InstanceMetadataEndpointState &value)
Definition: InstanceMetadataOptionsResponse.h:238
Aws::EC2::Model::InstanceMetadataOptionsResponse::SetHttpPutResponseHopLimit
void SetHttpPutResponseHopLimit(int value)
Definition: InstanceMetadataOptionsResponse.h:203
Aws::EC2::Model::HttpTokensState
HttpTokensState
Definition: HttpTokensState.h:17
Aws::EC2::Model::InstanceMetadataOptionsResponse::WithHttpEndpoint
InstanceMetadataOptionsResponse & WithHttpEndpoint(const InstanceMetadataEndpointState &value)
Definition: InstanceMetadataOptionsResponse.h:256
Aws::EC2::Model::InstanceMetadataOptionsResponse::SetState
void SetState(InstanceMetadataOptionsState &&value)
Definition: InstanceMetadataOptionsResponse.h:74
Aws::EC2::Model::InstanceMetadataOptionsResponse::GetState
const InstanceMetadataOptionsState & GetState() const
Definition: InstanceMetadataOptionsResponse.h:50
Aws::EC2::Model::InstanceMetadataOptionsResponse::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceMetadataOptionsState
InstanceMetadataOptionsState
Definition: InstanceMetadataOptionsState.h:17
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceMetadataOptionsResponse::operator=
InstanceMetadataOptionsResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataOptionsState.h
Aws::EC2::Model::InstanceMetadataOptionsResponse::SetHttpTokens
void SetHttpTokens(HttpTokensState &&value)
Definition: InstanceMetadataOptionsResponse.h:151
Aws::EC2::Model::InstanceMetadataOptionsResponse::GetHttpPutResponseHopLimit
int GetHttpPutResponseHopLimit() const
Definition: InstanceMetadataOptionsResponse.h:189
AWSStreamFwd.h
Aws::EC2::Model::InstanceMetadataOptionsResponse::HttpEndpointHasBeenSet
bool HttpEndpointHasBeenSet() const
Definition: InstanceMetadataOptionsResponse.h:229
Aws::EC2::Model::InstanceMetadataOptionsResponse::HttpTokensHasBeenSet
bool HttpTokensHasBeenSet() const
Definition: InstanceMetadataOptionsResponse.h:121
Aws::EC2::Model::InstanceMetadataEndpointState
InstanceMetadataEndpointState
Definition: InstanceMetadataEndpointState.h:17
Aws::EC2::Model::InstanceMetadataOptionsResponse::InstanceMetadataOptionsResponse
InstanceMetadataOptionsResponse()
Aws::EC2::Model::InstanceMetadataOptionsResponse::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceMetadataOptionsResponse::GetHttpEndpoint
const InstanceMetadataEndpointState & GetHttpEndpoint() const
Definition: InstanceMetadataOptionsResponse.h:220
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceMetadataOptionsResponse
Definition: InstanceMetadataOptionsResponse.h:34
Aws::EC2::Model::InstanceMetadataOptionsResponse::WithState
InstanceMetadataOptionsResponse & WithState(const InstanceMetadataOptionsState &value)
Definition: InstanceMetadataOptionsResponse.h:82
Aws::EC2::Model::InstanceMetadataOptionsResponse::WithState
InstanceMetadataOptionsResponse & WithState(InstanceMetadataOptionsState &&value)
Definition: InstanceMetadataOptionsResponse.h:90
InstanceMetadataEndpointState.h
HttpTokensState.h
Aws::EC2::Model::InstanceMetadataOptionsResponse::SetHttpTokens
void SetHttpTokens(const HttpTokensState &value)
Definition: InstanceMetadataOptionsResponse.h:136
Aws::EC2::Model::InstanceMetadataOptionsResponse::WithHttpEndpoint
InstanceMetadataOptionsResponse & WithHttpEndpoint(InstanceMetadataEndpointState &&value)
Definition: InstanceMetadataOptionsResponse.h:265
Aws::EC2::Model::InstanceMetadataOptionsResponse::WithHttpTokens
InstanceMetadataOptionsResponse & WithHttpTokens(const HttpTokensState &value)
Definition: InstanceMetadataOptionsResponse.h:166
Aws::EC2::Model::InstanceMetadataOptionsResponse::SetHttpEndpoint
void SetHttpEndpoint(InstanceMetadataEndpointState &&value)
Definition: InstanceMetadataOptionsResponse.h:247
Aws::EC2::Model::InstanceMetadataOptionsResponse::GetHttpTokens
const HttpTokensState & GetHttpTokens() const
Definition: InstanceMetadataOptionsResponse.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceMetadataOptionsResponse::WithHttpPutResponseHopLimit
InstanceMetadataOptionsResponse & WithHttpPutResponseHopLimit(int value)
Definition: InstanceMetadataOptionsResponse.h:210
Aws::EC2::Model::InstanceMetadataOptionsResponse::WithHttpTokens
InstanceMetadataOptionsResponse & WithHttpTokens(HttpTokensState &&value)
Definition: InstanceMetadataOptionsResponse.h:181
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceMetadataOptionsResponse::StateHasBeenSet
bool StateHasBeenSet() const
Definition: InstanceMetadataOptionsResponse.h:58
Aws::EC2::Model::InstanceMetadataOptionsResponse::InstanceMetadataOptionsResponse
InstanceMetadataOptionsResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceMetadataOptionsResponse::HttpPutResponseHopLimitHasBeenSet
bool HttpPutResponseHopLimitHasBeenSet() const
Definition: InstanceMetadataOptionsResponse.h:196
EC2_EXPORTS.h