AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceMetadataDefaultsResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/HttpTokensState.h>
11#include <aws/ec2/model/InstanceMetadataEndpointState.h>
12#include <aws/ec2/model/InstanceMetadataTagsState.h>
13#include <aws/ec2/model/ManagedBy.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
25
34 public:
35 AWS_EC2_API InstanceMetadataDefaultsResponse() = default;
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
49 inline HttpTokensState GetHttpTokens() const { return m_httpTokens; }
50 inline bool HttpTokensHasBeenSet() const { return m_httpTokensHasBeenSet; }
51 inline void SetHttpTokens(HttpTokensState value) {
52 m_httpTokensHasBeenSet = true;
53 m_httpTokens = value;
54 }
56 SetHttpTokens(value);
57 return *this;
58 }
60
62
65 inline int GetHttpPutResponseHopLimit() const { return m_httpPutResponseHopLimit; }
66 inline bool HttpPutResponseHopLimitHasBeenSet() const { return m_httpPutResponseHopLimitHasBeenSet; }
67 inline void SetHttpPutResponseHopLimit(int value) {
68 m_httpPutResponseHopLimitHasBeenSet = true;
69 m_httpPutResponseHopLimit = value;
70 }
73 return *this;
74 }
76
78
82 inline InstanceMetadataEndpointState GetHttpEndpoint() const { return m_httpEndpoint; }
83 inline bool HttpEndpointHasBeenSet() const { return m_httpEndpointHasBeenSet; }
85 m_httpEndpointHasBeenSet = true;
86 m_httpEndpoint = value;
87 }
89 SetHttpEndpoint(value);
90 return *this;
91 }
93
95
102 inline InstanceMetadataTagsState GetInstanceMetadataTags() const { return m_instanceMetadataTags; }
103 inline bool InstanceMetadataTagsHasBeenSet() const { return m_instanceMetadataTagsHasBeenSet; }
105 m_instanceMetadataTagsHasBeenSet = true;
106 m_instanceMetadataTags = value;
107 }
110 return *this;
111 }
113
115
122 inline ManagedBy GetManagedBy() const { return m_managedBy; }
123 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
124 inline void SetManagedBy(ManagedBy value) {
125 m_managedByHasBeenSet = true;
126 m_managedBy = value;
127 }
129 SetManagedBy(value);
130 return *this;
131 }
133
135
139 inline const Aws::String& GetManagedExceptionMessage() const { return m_managedExceptionMessage; }
140 inline bool ManagedExceptionMessageHasBeenSet() const { return m_managedExceptionMessageHasBeenSet; }
141 template <typename ManagedExceptionMessageT = Aws::String>
142 void SetManagedExceptionMessage(ManagedExceptionMessageT&& value) {
143 m_managedExceptionMessageHasBeenSet = true;
144 m_managedExceptionMessage = std::forward<ManagedExceptionMessageT>(value);
145 }
146 template <typename ManagedExceptionMessageT = Aws::String>
148 SetManagedExceptionMessage(std::forward<ManagedExceptionMessageT>(value));
149 return *this;
150 }
152 private:
154
155 int m_httpPutResponseHopLimit{0};
156
158
160
161 ManagedBy m_managedBy{ManagedBy::NOT_SET};
162
163 Aws::String m_managedExceptionMessage;
164 bool m_httpTokensHasBeenSet = false;
165 bool m_httpPutResponseHopLimitHasBeenSet = false;
166 bool m_httpEndpointHasBeenSet = false;
167 bool m_instanceMetadataTagsHasBeenSet = false;
168 bool m_managedByHasBeenSet = false;
169 bool m_managedExceptionMessageHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace EC2
174} // namespace Aws
InstanceMetadataDefaultsResponse & WithManagedExceptionMessage(ManagedExceptionMessageT &&value)
InstanceMetadataDefaultsResponse & WithHttpPutResponseHopLimit(int value)
AWS_EC2_API InstanceMetadataDefaultsResponse & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceMetadataDefaultsResponse(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceMetadataDefaultsResponse & WithHttpEndpoint(InstanceMetadataEndpointState value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceMetadataDefaultsResponse & WithHttpTokens(HttpTokensState value)
InstanceMetadataDefaultsResponse & WithInstanceMetadataTags(InstanceMetadataTagsState value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceMetadataDefaultsResponse & WithManagedBy(ManagedBy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream