AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const InstanceMetadataHttpTokensState& GetHttpTokens() const{ return m_httpTokens; }
61 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
62 inline void SetHttpTokens(const InstanceMetadataHttpTokensState& value) { m_httpTokensHasBeenSet = true; m_httpTokens = value; }
63 inline void SetHttpTokens(InstanceMetadataHttpTokensState&& value) { m_httpTokensHasBeenSet = true; m_httpTokens = std::move(value); }
65 inline InstanceMetadataOptions& WithHttpTokens(InstanceMetadataHttpTokensState&& value) { SetHttpTokens(std::move(value)); return *this;}
67
69
74 inline int GetHttpPutResponseHopLimit() const{ return m_httpPutResponseHopLimit; }
75 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
76 inline void SetHttpPutResponseHopLimit(int value) { m_httpPutResponseHopLimitHasBeenSet = true; m_httpPutResponseHopLimit = value; }
79
81
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 private:
96
98 bool m_httpTokensHasBeenSet = false;
99
100 int m_httpPutResponseHopLimit;
101 bool m_httpPutResponseHopLimitHasBeenSet = false;
102
103 InstanceMetadataEndpointState m_httpEndpoint;
104 bool m_httpEndpointHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace AutoScaling
109} // namespace Aws
InstanceMetadataOptions & WithHttpTokens(InstanceMetadataHttpTokensState &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetHttpEndpoint(const InstanceMetadataEndpointState &value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetHttpTokens(InstanceMetadataHttpTokensState &&value)
AWS_AUTOSCALING_API InstanceMetadataOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataOptions & WithHttpEndpoint(InstanceMetadataEndpointState &&value)
const InstanceMetadataEndpointState & GetHttpEndpoint() const
InstanceMetadataOptions & WithHttpPutResponseHopLimit(int value)
InstanceMetadataOptions & WithHttpEndpoint(const InstanceMetadataEndpointState &value)
AWS_AUTOSCALING_API InstanceMetadataOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const InstanceMetadataHttpTokensState & GetHttpTokens() const
void SetHttpEndpoint(InstanceMetadataEndpointState &&value)
InstanceMetadataOptions & WithHttpTokens(const InstanceMetadataHttpTokensState &value)
void SetHttpTokens(const InstanceMetadataHttpTokensState &value)
std::basic_ostream< char, std::char_traits< char > > OStream