AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMetadataOptionsRequest.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/HttpTokensState.h>
10#include <aws/ec2/model/InstanceMetadataEndpointState.h>
11#include <aws/ec2/model/InstanceMetadataProtocolState.h>
12#include <aws/ec2/model/InstanceMetadataTagsState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
63 inline const HttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
64 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
65 inline void SetHttpTokens(const HttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
66 inline void SetHttpTokens(HttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
67 inline InstanceMetadataOptionsRequest& WithHttpTokens(const HttpTokensState& value) { SetHttpTokens(value); return *this;}
68 inline InstanceMetadataOptionsRequest& WithHttpTokens(HttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
70
72
76 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
77 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
78 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
81
83
88 inline const InstanceMetadataEndpointState& GetHttpEndpoint() const{ return m_httpEndpoint; }
89 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
90 inline void SetHttpEndpoint(const InstanceMetadataEndpointState& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
91 inline void SetHttpEndpoint(InstanceMetadataEndpointState&& value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = std::move(value); }
95
97
101 inline const InstanceMetadataProtocolState& GetHttpProtocolIpv6() const{ return m_httpProtocolIpv6; }
102 inline bool HttpProtocolIpv6HasBeenSet() const { return m_httpProtocolIpv6HasBeenSet; }
103 inline void SetHttpProtocolIpv6(const InstanceMetadataProtocolState& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = value; }
104 inline void SetHttpProtocolIpv6(InstanceMetadataProtocolState&& value) { m_httpProtocolIpv6HasBeenSet = true; m_httpProtocolIpv6 = std::move(value); }
108
110
118 inline const InstanceMetadataTagsState& GetInstanceMetadataTags() const{ return m_instanceMetadataTags; }
119 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
120 inline void SetInstanceMetadataTags(const InstanceMetadataTagsState& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = value; }
121 inline void SetInstanceMetadataTags(InstanceMetadataTagsState&& value) { m_instanceMetadataTagsHasBeenSet = true; m_instanceMetadataTags = std::move(value); }
125 private:
126
127 HttpTokensState m_httpTokens;
128 bool m_httpTokensHasBeenSet = false;
129
130 int m_httpPutResponseHopLimit;
131 bool m_httpPutResponseHopLimitHasBeenSet = false;
132
133 InstanceMetadataEndpointState m_httpEndpoint;
134 bool m_httpEndpointHasBeenSet = false;
135
136 InstanceMetadataProtocolState m_httpProtocolIpv6;
137 bool m_httpProtocolIpv6HasBeenSet = false;
138
139 InstanceMetadataTagsState m_instanceMetadataTags;
140 bool m_instanceMetadataTagsHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
void SetInstanceMetadataTags(InstanceMetadataTagsState &&value)
InstanceMetadataOptionsRequest & WithHttpProtocolIpv6(InstanceMetadataProtocolState &&value)
InstanceMetadataOptionsRequest & WithInstanceMetadataTags(InstanceMetadataTagsState &&value)
InstanceMetadataOptionsRequest & WithHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
InstanceMetadataOptionsRequest & WithHttpTokens(const HttpTokensState &value)
const InstanceMetadataTagsState & GetInstanceMetadataTags() const
const InstanceMetadataEndpointState & GetHttpEndpoint() const
InstanceMetadataOptionsRequest & WithHttpEndpoint(InstanceMetadataEndpointState &&value)
InstanceMetadataOptionsRequest & WithInstanceMetadataTags(const InstanceMetadataTagsState &value)
AWS_EC2_API InstanceMetadataOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceMetadataTags(const InstanceMetadataTagsState &value)
const InstanceMetadataProtocolState & GetHttpProtocolIpv6() const
void SetHttpProtocolIpv6(const InstanceMetadataProtocolState &value)
void SetHttpEndpoint(const InstanceMetadataEndpointState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceMetadataOptionsRequest & WithHttpEndpoint(const InstanceMetadataEndpointState &value)
InstanceMetadataOptionsRequest & WithHttpTokens(HttpTokensState &&value)
void SetHttpProtocolIpv6(InstanceMetadataProtocolState &&value)
void SetHttpEndpoint(InstanceMetadataEndpointState &&value)
AWS_EC2_API InstanceMetadataOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataOptionsRequest & WithHttpPutResponseHopLimit(int value)
std::basic_ostream< char, std::char_traits< char > > OStream