AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetCapacityManagerAttributesResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CapacityManagerStatus.h>
12#include <aws/ec2/model/IngestionStatus.h>
13#include <aws/ec2/model/ResponseMetadata.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2 {
27namespace Model {
29 public:
30 AWS_EC2_API GetCapacityManagerAttributesResponse() = default;
33
35
38 inline CapacityManagerStatus GetCapacityManagerStatus() const { return m_capacityManagerStatus; }
40 m_capacityManagerStatusHasBeenSet = true;
41 m_capacityManagerStatus = value;
42 }
45 return *this;
46 }
48
50
54 inline bool GetOrganizationsAccess() const { return m_organizationsAccess; }
55 inline void SetOrganizationsAccess(bool value) {
56 m_organizationsAccessHasBeenSet = true;
57 m_organizationsAccess = value;
58 }
61 return *this;
62 }
64
66
70 inline int GetDataExportCount() const { return m_dataExportCount; }
71 inline void SetDataExportCount(int value) {
72 m_dataExportCountHasBeenSet = true;
73 m_dataExportCount = value;
74 }
76 SetDataExportCount(value);
77 return *this;
78 }
80
82
86 inline IngestionStatus GetIngestionStatus() const { return m_ingestionStatus; }
88 m_ingestionStatusHasBeenSet = true;
89 m_ingestionStatus = value;
90 }
92 SetIngestionStatus(value);
93 return *this;
94 }
96
98
103 inline const Aws::String& GetIngestionStatusMessage() const { return m_ingestionStatusMessage; }
104 template <typename IngestionStatusMessageT = Aws::String>
105 void SetIngestionStatusMessage(IngestionStatusMessageT&& value) {
106 m_ingestionStatusMessageHasBeenSet = true;
107 m_ingestionStatusMessage = std::forward<IngestionStatusMessageT>(value);
108 }
109 template <typename IngestionStatusMessageT = Aws::String>
111 SetIngestionStatusMessage(std::forward<IngestionStatusMessageT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::Utils::DateTime& GetEarliestDatapointTimestamp() const { return m_earliestDatapointTimestamp; }
123 template <typename EarliestDatapointTimestampT = Aws::Utils::DateTime>
124 void SetEarliestDatapointTimestamp(EarliestDatapointTimestampT&& value) {
125 m_earliestDatapointTimestampHasBeenSet = true;
126 m_earliestDatapointTimestamp = std::forward<EarliestDatapointTimestampT>(value);
127 }
128 template <typename EarliestDatapointTimestampT = Aws::Utils::DateTime>
130 SetEarliestDatapointTimestamp(std::forward<EarliestDatapointTimestampT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Utils::DateTime& GetLatestDatapointTimestamp() const { return m_latestDatapointTimestamp; }
141 template <typename LatestDatapointTimestampT = Aws::Utils::DateTime>
142 void SetLatestDatapointTimestamp(LatestDatapointTimestampT&& value) {
143 m_latestDatapointTimestampHasBeenSet = true;
144 m_latestDatapointTimestamp = std::forward<LatestDatapointTimestampT>(value);
145 }
146 template <typename LatestDatapointTimestampT = Aws::Utils::DateTime>
148 SetLatestDatapointTimestamp(std::forward<LatestDatapointTimestampT>(value));
149 return *this;
150 }
152
154
155 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
156 template <typename ResponseMetadataT = ResponseMetadata>
157 void SetResponseMetadata(ResponseMetadataT&& value) {
158 m_responseMetadataHasBeenSet = true;
159 m_responseMetadata = std::forward<ResponseMetadataT>(value);
160 }
161 template <typename ResponseMetadataT = ResponseMetadata>
163 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
164 return *this;
165 }
167 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
168
169 private:
171
172 bool m_organizationsAccess{false};
173
174 int m_dataExportCount{0};
175
176 IngestionStatus m_ingestionStatus{IngestionStatus::NOT_SET};
177
178 Aws::String m_ingestionStatusMessage;
179
180 Aws::Utils::DateTime m_earliestDatapointTimestamp{};
181
182 Aws::Utils::DateTime m_latestDatapointTimestamp{};
183
184 ResponseMetadata m_responseMetadata;
185 Aws::Http::HttpResponseCode m_HttpResponseCode;
186 bool m_capacityManagerStatusHasBeenSet = false;
187 bool m_organizationsAccessHasBeenSet = false;
188 bool m_dataExportCountHasBeenSet = false;
189 bool m_ingestionStatusHasBeenSet = false;
190 bool m_ingestionStatusMessageHasBeenSet = false;
191 bool m_earliestDatapointTimestampHasBeenSet = false;
192 bool m_latestDatapointTimestampHasBeenSet = false;
193 bool m_responseMetadataHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace EC2
198} // namespace Aws
GetCapacityManagerAttributesResponse & WithLatestDatapointTimestamp(LatestDatapointTimestampT &&value)
GetCapacityManagerAttributesResponse & WithOrganizationsAccess(bool value)
AWS_EC2_API GetCapacityManagerAttributesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetCapacityManagerAttributesResponse & WithIngestionStatus(IngestionStatus value)
GetCapacityManagerAttributesResponse & WithDataExportCount(int value)
GetCapacityManagerAttributesResponse & WithResponseMetadata(ResponseMetadataT &&value)
GetCapacityManagerAttributesResponse & WithEarliestDatapointTimestamp(EarliestDatapointTimestampT &&value)
AWS_EC2_API GetCapacityManagerAttributesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetCapacityManagerAttributesResponse & WithIngestionStatusMessage(IngestionStatusMessageT &&value)
GetCapacityManagerAttributesResponse & WithCapacityManagerStatus(CapacityManagerStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument