AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/autoscaling/model/InstanceMetadataHttpTokensState.h>
10#include <aws/autoscaling/model/InstanceMetadataEndpointState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace AutoScaling
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_AUTOSCALING_API InstanceMetadataOptions() = default;
39 AWS_AUTOSCALING_API InstanceMetadataOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_AUTOSCALING_API InstanceMetadataOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
60 inline InstanceMetadataHttpTokensState GetHttpTokens() const { return m_httpTokens; }
61 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
62 inline void SetHttpTokens(InstanceMetadataHttpTokensState value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
65
67
72 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
73 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
74 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
77
79
86 inline InstanceMetadataEndpointState GetHttpEndpoint() const { return m_httpEndpoint; }
87 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
88 inline void SetHttpEndpoint(InstanceMetadataEndpointState value) { m_httpEndpointHasBeenSet = true; m_httpEndpoint = value; }
91 private:
92
94 bool m_httpTokensHasBeenSet = false;
95
96 int m_httpPutResponseHopLimit{0};
97 bool m_httpPutResponseHopLimitHasBeenSet = false;
98
100 bool m_httpEndpointHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace AutoScaling
105} // namespace Aws
AWS_AUTOSCALING_API InstanceMetadataOptions()=default
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetHttpEndpoint(InstanceMetadataEndpointState value)
AWS_AUTOSCALING_API InstanceMetadataOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataOptions & WithHttpEndpoint(InstanceMetadataEndpointState value)
void SetHttpTokens(InstanceMetadataHttpTokensState value)
InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
InstanceMetadataEndpointState GetHttpEndpoint() const
AWS_AUTOSCALING_API InstanceMetadataOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataHttpTokensState GetHttpTokens() const
InstanceMetadataOptions & WithHttpTokens(InstanceMetadataHttpTokensState value)
std::basic_ostream< char, std::char_traits< char > > OStream