AWS SDK for C++  1.9.66
AWS SDK for C++
LaunchTemplateInstanceMetadataOptionsRequest.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 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
59  inline const LaunchTemplateHttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
60 
74  inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
75 
89  inline void SetHttpTokens(const LaunchTemplateHttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
90 
104  inline void SetHttpTokens(LaunchTemplateHttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
105 
119  inline LaunchTemplateInstanceMetadataOptionsRequest& WithHttpTokens(const LaunchTemplateHttpTokensState& value) { SetHttpTokens(value); return *this;}
120 
134  inline LaunchTemplateInstanceMetadataOptionsRequest& WithHttpTokens(LaunchTemplateHttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
135 
136 
142  inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
143 
149  inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
150 
156  inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
157 
163  inline LaunchTemplateInstanceMetadataOptionsRequest& WithHttpPutResponseHopLimit(int value) { SetHttpPutResponseHopLimit(value); return *this;}
164 
165 
173  inline const LaunchTemplateInstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
174 
182  inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
183 
191  inline void SetHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
192 
200  inline void SetHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
201 
210 
218  inline LaunchTemplateInstanceMetadataOptionsRequest& WithHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState&& value) { SetHttpEndpoint(std::move(value)); return *this;}
219 
220  private:
221 
222  LaunchTemplateHttpTokensState m_httpTokens;
223  bool m_httpTokensHasBeenSet;
224 
225  int m_httpPutResponseHopLimit;
226  bool m_httpPutResponseHopLimitHasBeenSet;
227 
229  bool m_httpEndpointHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace EC2
234 } // namespace Aws
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:36
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::WithHttpTokens
LaunchTemplateInstanceMetadataOptionsRequest & WithHttpTokens(const LaunchTemplateHttpTokensState &value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:119
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::WithHttpPutResponseHopLimit
LaunchTemplateInstanceMetadataOptionsRequest & WithHttpPutResponseHopLimit(int value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:163
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::WithHttpEndpoint
LaunchTemplateInstanceMetadataOptionsRequest & WithHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState &value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:209
AWSStreamFwd.h
LaunchTemplateHttpTokensState.h
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::HttpEndpointHasBeenSet
bool HttpEndpointHasBeenSet() const
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:182
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::HttpTokensHasBeenSet
bool HttpTokensHasBeenSet() const
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:74
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::SetHttpEndpoint
void SetHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState &&value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:200
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::HttpPutResponseHopLimitHasBeenSet
bool HttpPutResponseHopLimitHasBeenSet() const
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:149
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::LaunchTemplateInstanceMetadataOptionsRequest
LaunchTemplateInstanceMetadataOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::SetHttpEndpoint
void SetHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState &value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:191
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::WithHttpTokens
LaunchTemplateInstanceMetadataOptionsRequest & WithHttpTokens(LaunchTemplateHttpTokensState &&value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:134
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::GetHttpTokens
const LaunchTemplateHttpTokensState & GetHttpTokens() const
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:59
LaunchTemplateInstanceMetadataEndpointState.h
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::SetHttpTokens
void SetHttpTokens(const LaunchTemplateHttpTokensState &value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:89
Aws::EC2::Model::LaunchTemplateHttpTokensState
LaunchTemplateHttpTokensState
Definition: LaunchTemplateHttpTokensState.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::operator=
LaunchTemplateInstanceMetadataOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::WithHttpEndpoint
LaunchTemplateInstanceMetadataOptionsRequest & WithHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState &&value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:218
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::LaunchTemplateInstanceMetadataOptionsRequest
LaunchTemplateInstanceMetadataOptionsRequest()
Aws::EC2::Model::LaunchTemplateInstanceMetadataEndpointState
LaunchTemplateInstanceMetadataEndpointState
Definition: LaunchTemplateInstanceMetadataEndpointState.h:17
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::GetHttpPutResponseHopLimit
int GetHttpPutResponseHopLimit() const
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:142
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::SetHttpPutResponseHopLimit
void SetHttpPutResponseHopLimit(int value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:156
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::SetHttpTokens
void SetHttpTokens(LaunchTemplateHttpTokensState &&value)
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:104
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsRequest::GetHttpEndpoint
const LaunchTemplateInstanceMetadataEndpointState & GetHttpEndpoint() const
Definition: LaunchTemplateInstanceMetadataOptionsRequest.h:173