AWS SDK for C++  1.9.103
AWS SDK for C++
InstanceMetadataOptionsRequest.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 
57  inline const HttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
58 
72  inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
73 
87  inline void SetHttpTokens(const HttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
88 
102  inline void SetHttpTokens(HttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
103 
117  inline InstanceMetadataOptionsRequest& WithHttpTokens(const HttpTokensState& value) { SetHttpTokens(value); return *this;}
118 
132  inline InstanceMetadataOptionsRequest& WithHttpTokens(HttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
133 
134 
140  inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
141 
147  inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
148 
154  inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
155 
161  inline InstanceMetadataOptionsRequest& WithHttpPutResponseHopLimit(int value) { SetHttpPutResponseHopLimit(value); return *this;}
162 
163 
171  inline const InstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
172 
180  inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
181 
189  inline void SetHttpEndpoint(const InstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
190 
198  inline void SetHttpEndpoint(InstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
199 
207  inline InstanceMetadataOptionsRequest& WithHttpEndpoint(const InstanceMetadataEndpointState& value) { SetHttpEndpoint(value); return *this;}
208 
216  inline InstanceMetadataOptionsRequest& WithHttpEndpoint(InstanceMetadataEndpointState&& value) { SetHttpEndpoint(std::move(value)); return *this;}
217 
218 
222  inline const InstanceMetadataProtocolState& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
223 
227  inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
228 
232  inline void SetHttpProtocolIpv6(const InstanceMetadataProtocolState& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
233 
237  inline void SetHttpProtocolIpv6(InstanceMetadataProtocolState&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
238 
242  inline InstanceMetadataOptionsRequest& WithHttpProtocolIpv6(const InstanceMetadataProtocolState& value) { SetHttpProtocolIpv6(value); return *this;}
243 
247  inline InstanceMetadataOptionsRequest& WithHttpProtocolIpv6(InstanceMetadataProtocolState&& value) { SetHttpProtocolIpv6(std::move(value)); return *this;}
248 
249  private:
250 
251  HttpTokensState m_httpTokens;
252  bool m_httpTokensHasBeenSet;
253 
254  int m_httpPutResponseHopLimit;
255  bool m_httpPutResponseHopLimitHasBeenSet;
256 
257  InstanceMetadataEndpointState m_httpEndpoint;
258  bool m_httpEndpointHasBeenSet;
259 
260  InstanceMetadataProtocolState m_httpProtocolIpv6;
261  bool m_httpProtocolIpv6HasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace EC2
266 } // namespace Aws
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpProtocolIpv6
void SetHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
Definition: InstanceMetadataOptionsRequest.h:232
Aws::EC2::Model::InstanceMetadataOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::HttpTokensState
HttpTokensState
Definition: HttpTokensState.h:17
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpPutResponseHopLimit
void SetHttpPutResponseHopLimit(int value)
Definition: InstanceMetadataOptionsRequest.h:154
Aws::EC2::Model::InstanceMetadataOptionsRequest
Definition: InstanceMetadataOptionsRequest.h:34
Aws::EC2::Model::InstanceMetadataOptionsRequest::GetHttpPutResponseHopLimit
int GetHttpPutResponseHopLimit() const
Definition: InstanceMetadataOptionsRequest.h:140
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpProtocolIpv6
InstanceMetadataOptionsRequest & WithHttpProtocolIpv6(InstanceMetadataProtocolState &&value)
Definition: InstanceMetadataOptionsRequest.h:247
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpProtocolIpv6
void SetHttpProtocolIpv6(InstanceMetadataProtocolState &&value)
Definition: InstanceMetadataOptionsRequest.h:237
Aws::EC2::Model::InstanceMetadataOptionsRequest::HttpTokensHasBeenSet
bool HttpTokensHasBeenSet() const
Definition: InstanceMetadataOptionsRequest.h:72
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpProtocolIpv6
InstanceMetadataOptionsRequest & WithHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
Definition: InstanceMetadataOptionsRequest.h:242
Aws::EC2::Model::InstanceMetadataOptionsRequest::HttpEndpointHasBeenSet
bool HttpEndpointHasBeenSet() const
Definition: InstanceMetadataOptionsRequest.h:180
AWSStreamFwd.h
Aws::EC2::Model::InstanceMetadataEndpointState
InstanceMetadataEndpointState
Definition: InstanceMetadataEndpointState.h:17
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpEndpoint
void SetHttpEndpoint(InstanceMetadataEndpointState &&value)
Definition: InstanceMetadataOptionsRequest.h:198
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
InstanceMetadataProtocolState.h
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpPutResponseHopLimit
InstanceMetadataOptionsRequest & WithHttpPutResponseHopLimit(int value)
Definition: InstanceMetadataOptionsRequest.h:161
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceMetadataOptionsRequest::GetHttpTokens
const HttpTokensState & GetHttpTokens() const
Definition: InstanceMetadataOptionsRequest.h:57
Aws::EC2::Model::InstanceMetadataOptionsRequest::InstanceMetadataOptionsRequest
InstanceMetadataOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpEndpoint
void SetHttpEndpoint(const InstanceMetadataEndpointState &value)
Definition: InstanceMetadataOptionsRequest.h:189
Aws::EC2::Model::InstanceMetadataOptionsRequest::operator=
InstanceMetadataOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceMetadataOptionsRequest::GetHttpEndpoint
const InstanceMetadataEndpointState & GetHttpEndpoint() const
Definition: InstanceMetadataOptionsRequest.h:171
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpEndpoint
InstanceMetadataOptionsRequest & WithHttpEndpoint(InstanceMetadataEndpointState &&value)
Definition: InstanceMetadataOptionsRequest.h:216
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpTokens
void SetHttpTokens(HttpTokensState &&value)
Definition: InstanceMetadataOptionsRequest.h:102
InstanceMetadataEndpointState.h
Aws::EC2::Model::InstanceMetadataOptionsRequest::GetHttpProtocolIpv6
const InstanceMetadataProtocolState & GetHttpProtocolIpv6() const
Definition: InstanceMetadataOptionsRequest.h:222
HttpTokensState.h
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpTokens
InstanceMetadataOptionsRequest & WithHttpTokens(const HttpTokensState &value)
Definition: InstanceMetadataOptionsRequest.h:117
Aws::EC2::Model::InstanceMetadataOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpEndpoint
InstanceMetadataOptionsRequest & WithHttpEndpoint(const InstanceMetadataEndpointState &value)
Definition: InstanceMetadataOptionsRequest.h:207
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpTokens
InstanceMetadataOptionsRequest & WithHttpTokens(HttpTokensState &&value)
Definition: InstanceMetadataOptionsRequest.h:132
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpTokens
void SetHttpTokens(const HttpTokensState &value)
Definition: InstanceMetadataOptionsRequest.h:87
Aws::EC2::Model::InstanceMetadataOptionsRequest::HttpPutResponseHopLimitHasBeenSet
bool HttpPutResponseHopLimitHasBeenSet() const
Definition: InstanceMetadataOptionsRequest.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceMetadataProtocolState
InstanceMetadataProtocolState
Definition: InstanceMetadataProtocolState.h:17
Aws::EC2::Model::InstanceMetadataOptionsRequest::InstanceMetadataOptionsRequest
InstanceMetadataOptionsRequest()
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceMetadataOptionsRequest::HttpProtocolIpv6HasBeenSet
bool HttpProtocolIpv6HasBeenSet() const
Definition: InstanceMetadataOptionsRequest.h:227
EC2_EXPORTS.h