AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InstanceMetadataOptions.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/InstanceMetadataEndpointState.h>
9#include <aws/autoscaling/model/InstanceMetadataHttpTokensState.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace AutoScaling {
21namespace Model {
22
32 public:
33 AWS_AUTOSCALING_API InstanceMetadataOptions() = default;
34 AWS_AUTOSCALING_API InstanceMetadataOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_AUTOSCALING_API InstanceMetadataOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
54 inline InstanceMetadataHttpTokensState GetHttpTokens() const { return m_httpTokens; }
55 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
57 m_httpTokensHasBeenSet = true;
58 m_httpTokens = value;
59 }
61 SetHttpTokens(value);
62 return *this;
63 }
65
67
72 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
73 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
74 inline void SetHttpPutResponseHopLimit(int value) {
75 m_httpPutResponseHopLimitHasBeenSet = true;
76 m_httpPutResponseHopLimit = value;
77 }
80 return *this;
81 }
83
85
92 inline InstanceMetadataEndpointState GetHttpEndpoint() const { return m_httpEndpoint; }
93 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
95 m_httpEndpointHasBeenSet = true;
96 m_httpEndpoint = value;
97 }
99 SetHttpEndpoint(value);
100 return *this;
101 }
103 private:
105
106 int m_httpPutResponseHopLimit{0};
107
109 bool m_httpTokensHasBeenSet = false;
110 bool m_httpPutResponseHopLimitHasBeenSet = false;
111 bool m_httpEndpointHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace AutoScaling
116} // 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