AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMetadataOptionsResponse.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/InstanceMetadataOptionsState.h>
10#include <aws/ec2/model/HttpTokensState.h>
11#include <aws/ec2/model/InstanceMetadataEndpointState.h>
12#include <aws/ec2/model/InstanceMetadataProtocolState.h>
13#include <aws/ec2/model/InstanceMetadataTagsState.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
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
53 inline const InstanceMetadataOptionsState& GetState() const{ return m_state; }
54 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
55 inline void SetState(const InstanceMetadataOptionsState& value) { m_stateHasBeenSet = true; m_state = value; }
56 inline void SetState(InstanceMetadataOptionsState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
58 inline InstanceMetadataOptionsResponse& WithState(InstanceMetadataOptionsState&& value) { SetState(std::move(value)); return *this;}
60
62
68 inline const HttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
69 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
70 inline void SetHttpTokens(const HttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
71 inline void SetHttpTokens(HttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
72 inline InstanceMetadataOptionsResponse& WithHttpTokens(const HttpTokensState& value) { SetHttpTokens(value); return *this;}
73 inline InstanceMetadataOptionsResponse& WithHttpTokens(HttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
75
77
81 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
82 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
83 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
86
88
93 inline const InstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
94 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
95 inline void SetHttpEndpoint(const InstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
96 inline void SetHttpEndpoint(InstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
100
102
106 inline const InstanceMetadataProtocolState& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
107 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
108 inline void SetHttpProtocolIpv6(const InstanceMetadataProtocolState& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
109 inline void SetHttpProtocolIpv6(InstanceMetadataProtocolState&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
113
115
121 inline const InstanceMetadataTagsState& GetInstanceMetadataTags() const{ return m_instanceMetadataTags; }
122 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
123 inline void SetInstanceMetadataTags(const InstanceMetadataTagsState& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = value; }
124 inline void SetInstanceMetadataTags(InstanceMetadataTagsState&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::move(value); }
128 private:
129
131 bool m_stateHasBeenSet = false;
132
133 HttpTokensState m_httpTokens;
134 bool m_httpTokensHasBeenSet = false;
135
136 int m_httpPutResponseHopLimit;
137 bool m_httpPutResponseHopLimitHasBeenSet = false;
138
139 InstanceMetadataEndpointState m_httpEndpoint;
140 bool m_httpEndpointHasBeenSet = false;
141
142 InstanceMetadataProtocolState m_httpProtocolIpv6;
143 bool m_httpProtocolIpv6HasBeenSet = false;
144
145 InstanceMetadataTagsState m_instanceMetadataTags;
146 bool m_instanceMetadataTagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
const InstanceMetadataOptionsState & GetState() const
void SetHttpEndpoint(const InstanceMetadataEndpointState &value)
const InstanceMetadataTagsState & GetInstanceMetadataTags() const
InstanceMetadataOptionsResponse & WithHttpEndpoint(InstanceMetadataEndpointState &&value)
void SetHttpEndpoint(InstanceMetadataEndpointState &&value)
const InstanceMetadataEndpointState & GetHttpEndpoint() const
InstanceMetadataOptionsResponse & WithState(const InstanceMetadataOptionsState &value)
void SetState(const InstanceMetadataOptionsState &value)
void SetHttpProtocolIpv6(InstanceMetadataProtocolState &&value)
InstanceMetadataOptionsResponse & WithInstanceMetadataTags(InstanceMetadataTagsState &&value)
AWS_EC2_API InstanceMetadataOptionsResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataOptionsResponse & WithHttpPutResponseHopLimit(int value)
InstanceMetadataOptionsResponse & WithState(InstanceMetadataOptionsState &&value)
void SetInstanceMetadataTags(InstanceMetadataTagsState &&value)
InstanceMetadataOptionsResponse & WithHttpTokens(const HttpTokensState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetInstanceMetadataTags(const InstanceMetadataTagsState &value)
InstanceMetadataOptionsResponse & WithHttpEndpoint(const InstanceMetadataEndpointState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const InstanceMetadataProtocolState & GetHttpProtocolIpv6() const
InstanceMetadataOptionsResponse & WithHttpTokens(HttpTokensState &&value)
InstanceMetadataOptionsResponse & WithInstanceMetadataTags(const InstanceMetadataTagsState &value)
InstanceMetadataOptionsResponse & WithHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
void SetHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
AWS_EC2_API InstanceMetadataOptionsResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataOptionsResponse & WithHttpProtocolIpv6(InstanceMetadataProtocolState &&value)
std::basic_ostream< char, std::char_traits< char > > OStream