AWS SDK for C++  1.9.65
AWS SDK for C++
LaunchTemplateInstanceMetadataOptions.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 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
53  inline const LaunchTemplateInstanceMetadataOptionsState& GetState() const{ return m_state; }
54 
61  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 
69  inline void SetState(const LaunchTemplateInstanceMetadataOptionsState& value) { m_stateHasBeenSet = true; m_state = value; }
70 
77  inline void SetState(LaunchTemplateInstanceMetadataOptionsState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
78 
85  inline LaunchTemplateInstanceMetadataOptions& WithState(const LaunchTemplateInstanceMetadataOptionsState& value) { SetState(value); return *this;}
86 
93  inline LaunchTemplateInstanceMetadataOptions& WithState(LaunchTemplateInstanceMetadataOptionsState&& value) { SetState(std::move(value)); return *this;}
94 
95 
109  inline const LaunchTemplateHttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
110 
124  inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
125 
139  inline void SetHttpTokens(const LaunchTemplateHttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
140 
154  inline void SetHttpTokens(LaunchTemplateHttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
155 
169  inline LaunchTemplateInstanceMetadataOptions& WithHttpTokens(const LaunchTemplateHttpTokensState& value) { SetHttpTokens(value); return *this;}
170 
184  inline LaunchTemplateInstanceMetadataOptions& WithHttpTokens(LaunchTemplateHttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
185 
186 
192  inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
193 
199  inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
200 
206  inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
207 
213  inline LaunchTemplateInstanceMetadataOptions& WithHttpPutResponseHopLimit(int value) { SetHttpPutResponseHopLimit(value); return *this;}
214 
215 
223  inline const LaunchTemplateInstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
224 
232  inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
233 
241  inline void SetHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
242 
250  inline void SetHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
251 
259  inline LaunchTemplateInstanceMetadataOptions& WithHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState& value) { SetHttpEndpoint(value); return *this;}
260 
268  inline LaunchTemplateInstanceMetadataOptions& WithHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState&& value) { SetHttpEndpoint(std::move(value)); return *this;}
269 
270  private:
271 
273  bool m_stateHasBeenSet;
274 
275  LaunchTemplateHttpTokensState m_httpTokens;
276  bool m_httpTokensHasBeenSet;
277 
278  int m_httpPutResponseHopLimit;
279  bool m_httpPutResponseHopLimitHasBeenSet;
280 
282  bool m_httpEndpointHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace EC2
287 } // namespace Aws
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::SetHttpPutResponseHopLimit
void SetHttpPutResponseHopLimit(int value)
Definition: LaunchTemplateInstanceMetadataOptions.h:206
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::HttpPutResponseHopLimitHasBeenSet
bool HttpPutResponseHopLimitHasBeenSet() const
Definition: LaunchTemplateInstanceMetadataOptions.h:199
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::HttpEndpointHasBeenSet
bool HttpEndpointHasBeenSet() const
Definition: LaunchTemplateInstanceMetadataOptions.h:232
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::GetHttpTokens
const LaunchTemplateHttpTokensState & GetHttpTokens() const
Definition: LaunchTemplateInstanceMetadataOptions.h:109
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::StateHasBeenSet
bool StateHasBeenSet() const
Definition: LaunchTemplateInstanceMetadataOptions.h:61
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::SetState
void SetState(LaunchTemplateInstanceMetadataOptionsState &&value)
Definition: LaunchTemplateInstanceMetadataOptions.h:77
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::GetState
const LaunchTemplateInstanceMetadataOptionsState & GetState() const
Definition: LaunchTemplateInstanceMetadataOptions.h:53
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::operator=
LaunchTemplateInstanceMetadataOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
LaunchTemplateInstanceMetadataOptionsState.h
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::SetHttpEndpoint
void SetHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState &value)
Definition: LaunchTemplateInstanceMetadataOptions.h:241
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::WithHttpTokens
LaunchTemplateInstanceMetadataOptions & WithHttpTokens(LaunchTemplateHttpTokensState &&value)
Definition: LaunchTemplateInstanceMetadataOptions.h:184
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions
Definition: LaunchTemplateInstanceMetadataOptions.h:37
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::SetState
void SetState(const LaunchTemplateInstanceMetadataOptionsState &value)
Definition: LaunchTemplateInstanceMetadataOptions.h:69
AWSStreamFwd.h
LaunchTemplateHttpTokensState.h
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::WithHttpPutResponseHopLimit
LaunchTemplateInstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
Definition: LaunchTemplateInstanceMetadataOptions.h:213
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::GetHttpPutResponseHopLimit
int GetHttpPutResponseHopLimit() const
Definition: LaunchTemplateInstanceMetadataOptions.h:192
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::WithHttpEndpoint
LaunchTemplateInstanceMetadataOptions & WithHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState &&value)
Definition: LaunchTemplateInstanceMetadataOptions.h:268
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::SetHttpTokens
void SetHttpTokens(LaunchTemplateHttpTokensState &&value)
Definition: LaunchTemplateInstanceMetadataOptions.h:154
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::WithHttpEndpoint
LaunchTemplateInstanceMetadataOptions & WithHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState &value)
Definition: LaunchTemplateInstanceMetadataOptions.h:259
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::SetHttpTokens
void SetHttpTokens(const LaunchTemplateHttpTokensState &value)
Definition: LaunchTemplateInstanceMetadataOptions.h:139
LaunchTemplateInstanceMetadataEndpointState.h
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::LaunchTemplateInstanceMetadataOptions
LaunchTemplateInstanceMetadataOptions()
Aws::EC2::Model::LaunchTemplateHttpTokensState
LaunchTemplateHttpTokensState
Definition: LaunchTemplateHttpTokensState.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateInstanceMetadataEndpointState
LaunchTemplateInstanceMetadataEndpointState
Definition: LaunchTemplateInstanceMetadataEndpointState.h:17
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::LaunchTemplateInstanceMetadataOptions
LaunchTemplateInstanceMetadataOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::GetHttpEndpoint
const LaunchTemplateInstanceMetadataEndpointState & GetHttpEndpoint() const
Definition: LaunchTemplateInstanceMetadataOptions.h:223
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::WithState
LaunchTemplateInstanceMetadataOptions & WithState(const LaunchTemplateInstanceMetadataOptionsState &value)
Definition: LaunchTemplateInstanceMetadataOptions.h:85
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::HttpTokensHasBeenSet
bool HttpTokensHasBeenSet() const
Definition: LaunchTemplateInstanceMetadataOptions.h:124
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptionsState
LaunchTemplateInstanceMetadataOptionsState
Definition: LaunchTemplateInstanceMetadataOptionsState.h:17
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::SetHttpEndpoint
void SetHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState &&value)
Definition: LaunchTemplateInstanceMetadataOptions.h:250
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::WithState
LaunchTemplateInstanceMetadataOptions & WithState(LaunchTemplateInstanceMetadataOptionsState &&value)
Definition: LaunchTemplateInstanceMetadataOptions.h:93
Aws::EC2::Model::LaunchTemplateInstanceMetadataOptions::WithHttpTokens
LaunchTemplateInstanceMetadataOptions & WithHttpTokens(const LaunchTemplateHttpTokensState &value)
Definition: LaunchTemplateInstanceMetadataOptions.h:169