AWS SDK for C++  1.9.40
AWS SDK for C++
InstanceMetadataOptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
56  inline const HttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
57 
71  inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
72 
86  inline void SetHttpTokens(const HttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
87 
101  inline void SetHttpTokens(HttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
102 
116  inline InstanceMetadataOptionsRequest& WithHttpTokens(const HttpTokensState& value) { SetHttpTokens(value); return *this;}
117 
131  inline InstanceMetadataOptionsRequest& WithHttpTokens(HttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
132 
133 
139  inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
140 
146  inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
147 
153  inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
154 
160  inline InstanceMetadataOptionsRequest& WithHttpPutResponseHopLimit(int value) { SetHttpPutResponseHopLimit(value); return *this;}
161 
162 
170  inline const InstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
171 
179  inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
180 
188  inline void SetHttpEndpoint(const InstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
189 
197  inline void SetHttpEndpoint(InstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
198 
206  inline InstanceMetadataOptionsRequest& WithHttpEndpoint(const InstanceMetadataEndpointState& value) { SetHttpEndpoint(value); return *this;}
207 
215  inline InstanceMetadataOptionsRequest& WithHttpEndpoint(InstanceMetadataEndpointState&& value) { SetHttpEndpoint(std::move(value)); return *this;}
216 
217  private:
218 
219  HttpTokensState m_httpTokens;
220  bool m_httpTokensHasBeenSet;
221 
222  int m_httpPutResponseHopLimit;
223  bool m_httpPutResponseHopLimitHasBeenSet;
224 
225  InstanceMetadataEndpointState m_httpEndpoint;
226  bool m_httpEndpointHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace EC2
231 } // namespace Aws
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:153
Aws::EC2::Model::InstanceMetadataOptionsRequest
Definition: InstanceMetadataOptionsRequest.h:33
Aws::EC2::Model::InstanceMetadataOptionsRequest::GetHttpPutResponseHopLimit
int GetHttpPutResponseHopLimit() const
Definition: InstanceMetadataOptionsRequest.h:139
Aws::EC2::Model::InstanceMetadataOptionsRequest::HttpTokensHasBeenSet
bool HttpTokensHasBeenSet() const
Definition: InstanceMetadataOptionsRequest.h:71
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceMetadataOptionsRequest::HttpEndpointHasBeenSet
bool HttpEndpointHasBeenSet() const
Definition: InstanceMetadataOptionsRequest.h:179
AWSStreamFwd.h
Aws::EC2::Model::InstanceMetadataEndpointState
InstanceMetadataEndpointState
Definition: InstanceMetadataEndpointState.h:17
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpEndpoint
void SetHttpEndpoint(InstanceMetadataEndpointState &&value)
Definition: InstanceMetadataOptionsRequest.h:197
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpPutResponseHopLimit
InstanceMetadataOptionsRequest & WithHttpPutResponseHopLimit(int value)
Definition: InstanceMetadataOptionsRequest.h:160
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceMetadataOptionsRequest::GetHttpTokens
const HttpTokensState & GetHttpTokens() const
Definition: InstanceMetadataOptionsRequest.h:56
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:188
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:170
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpEndpoint
InstanceMetadataOptionsRequest & WithHttpEndpoint(InstanceMetadataEndpointState &&value)
Definition: InstanceMetadataOptionsRequest.h:215
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpTokens
void SetHttpTokens(HttpTokensState &&value)
Definition: InstanceMetadataOptionsRequest.h:101
InstanceMetadataEndpointState.h
HttpTokensState.h
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpTokens
InstanceMetadataOptionsRequest & WithHttpTokens(const HttpTokensState &value)
Definition: InstanceMetadataOptionsRequest.h:116
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:206
Aws::EC2::Model::InstanceMetadataOptionsRequest::WithHttpTokens
InstanceMetadataOptionsRequest & WithHttpTokens(HttpTokensState &&value)
Definition: InstanceMetadataOptionsRequest.h:131
Aws::EC2::Model::InstanceMetadataOptionsRequest::SetHttpTokens
void SetHttpTokens(const HttpTokensState &value)
Definition: InstanceMetadataOptionsRequest.h:86
Aws::EC2::Model::InstanceMetadataOptionsRequest::HttpPutResponseHopLimitHasBeenSet
bool HttpPutResponseHopLimitHasBeenSet() const
Definition: InstanceMetadataOptionsRequest.h:146
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceMetadataOptionsRequest::InstanceMetadataOptionsRequest
InstanceMetadataOptionsRequest()
index
int index
Definition: cJSON.h:171
EC2_EXPORTS.h