AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchTemplateInstanceMetadataOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/LaunchTemplateInstanceMetadataOptionsState.h>
10#include <aws/ec2/model/LaunchTemplateHttpTokensState.h>
11#include <aws/ec2/model/LaunchTemplateInstanceMetadataEndpointState.h>
12#include <aws/ec2/model/LaunchTemplateInstanceMetadataProtocolIpv6.h>
13#include <aws/ec2/model/LaunchTemplateInstanceMetadataTagsState.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
39 {
40 public:
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
56 inline const LaunchTemplateInstanceMetadataOptionsState& GetState() const{ return m_state; }
57 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
58 inline void SetState(const LaunchTemplateInstanceMetadataOptionsState& value) { m_stateHasBeenSet = true; m_state = value; }
59 inline void SetState(LaunchTemplateInstanceMetadataOptionsState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
63
65
76 inline const LaunchTemplateHttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
77 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
78 inline void SetHttpTokens(const LaunchTemplateHttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
79 inline void SetHttpTokens(LaunchTemplateHttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
83
85
90 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
91 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
92 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
95
97
103 inline const LaunchTemplateInstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
104 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
105 inline void SetHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
106 inline void SetHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
110
112
116 inline const LaunchTemplateInstanceMetadataProtocolIpv6& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
117 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
118 inline void SetHttpProtocolIpv6(const LaunchTemplateInstanceMetadataProtocolIpv6& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
119 inline void SetHttpProtocolIpv6(LaunchTemplateInstanceMetadataProtocolIpv6&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
123
125
133 inline const LaunchTemplateInstanceMetadataTagsState& GetInstanceMetadataTags() const{ return m_instanceMetadataTags; }
134 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
135 inline void SetInstanceMetadataTags(const LaunchTemplateInstanceMetadataTagsState& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = value; }
136 inline void SetInstanceMetadataTags(LaunchTemplateInstanceMetadataTagsState&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::move(value); }
140 private:
141
143 bool m_stateHasBeenSet = false;
144
146 bool m_httpTokensHasBeenSet = false;
147
148 int m_httpPutResponseHopLimit;
149 bool m_httpPutResponseHopLimitHasBeenSet = false;
150
152 bool m_httpEndpointHasBeenSet = false;
153
155 bool m_httpProtocolIpv6HasBeenSet = false;
156
157 LaunchTemplateInstanceMetadataTagsState m_instanceMetadataTags;
158 bool m_instanceMetadataTagsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace EC2
163} // namespace Aws
const LaunchTemplateInstanceMetadataEndpointState & GetHttpEndpoint() const
void SetHttpProtocolIpv6(const LaunchTemplateInstanceMetadataProtocolIpv6 &value)
AWS_EC2_API LaunchTemplateInstanceMetadataOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceMetadataTags(const LaunchTemplateInstanceMetadataTagsState &value)
void SetState(LaunchTemplateInstanceMetadataOptionsState &&value)
LaunchTemplateInstanceMetadataOptions & WithHttpProtocolIpv6(LaunchTemplateInstanceMetadataProtocolIpv6 &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetHttpProtocolIpv6(LaunchTemplateInstanceMetadataProtocolIpv6 &&value)
LaunchTemplateInstanceMetadataOptions & WithHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState &value)
void SetInstanceMetadataTags(LaunchTemplateInstanceMetadataTagsState &&value)
void SetHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState &&value)
LaunchTemplateInstanceMetadataOptions & WithInstanceMetadataTags(LaunchTemplateInstanceMetadataTagsState &&value)
const LaunchTemplateInstanceMetadataProtocolIpv6 & GetHttpProtocolIpv6() const
void SetState(const LaunchTemplateInstanceMetadataOptionsState &value)
LaunchTemplateInstanceMetadataOptions & WithHttpTokens(LaunchTemplateHttpTokensState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetHttpEndpoint(const LaunchTemplateInstanceMetadataEndpointState &value)
const LaunchTemplateInstanceMetadataOptionsState & GetState() const
LaunchTemplateInstanceMetadataOptions & WithHttpEndpoint(LaunchTemplateInstanceMetadataEndpointState &&value)
LaunchTemplateInstanceMetadataOptions & WithState(LaunchTemplateInstanceMetadataOptionsState &&value)
AWS_EC2_API LaunchTemplateInstanceMetadataOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LaunchTemplateInstanceMetadataOptions & WithHttpTokens(const LaunchTemplateHttpTokensState &value)
LaunchTemplateInstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
LaunchTemplateInstanceMetadataOptions & WithInstanceMetadataTags(const LaunchTemplateInstanceMetadataTagsState &value)
LaunchTemplateInstanceMetadataOptions & WithState(const LaunchTemplateInstanceMetadataOptionsState &value)
LaunchTemplateInstanceMetadataOptions & WithHttpProtocolIpv6(const LaunchTemplateInstanceMetadataProtocolIpv6 &value)
const LaunchTemplateInstanceMetadataTagsState & GetInstanceMetadataTags() const
std::basic_ostream< char, std::char_traits< char > > OStream