AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetCapacityManagerAttributesResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/CapacityManagerStatus.h>
11#include <aws/ec2/model/IngestionStatus.h>
12#include <aws/ec2/model/ResponseMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2 {
26namespace Model {
28 public:
29 AWS_EC2_API GetCapacityManagerAttributesResponse() = default;
32
34
37 inline CapacityManagerStatus GetCapacityManagerStatus() const { return m_capacityManagerStatus; }
39 m_capacityManagerStatusHasBeenSet = true;
40 m_capacityManagerStatus = value;
41 }
44 return *this;
45 }
47
49
53 inline bool GetOrganizationsAccess() const { return m_organizationsAccess; }
54 inline void SetOrganizationsAccess(bool value) {
55 m_organizationsAccessHasBeenSet = true;
56 m_organizationsAccess = value;
57 }
60 return *this;
61 }
63
65
69 inline int GetDataExportCount() const { return m_dataExportCount; }
70 inline void SetDataExportCount(int value) {
71 m_dataExportCountHasBeenSet = true;
72 m_dataExportCount = value;
73 }
75 SetDataExportCount(value);
76 return *this;
77 }
79
81
85 inline IngestionStatus GetIngestionStatus() const { return m_ingestionStatus; }
87 m_ingestionStatusHasBeenSet = true;
88 m_ingestionStatus = value;
89 }
91 SetIngestionStatus(value);
92 return *this;
93 }
95
97
102 inline const Aws::String& GetIngestionStatusMessage() const { return m_ingestionStatusMessage; }
103 template <typename IngestionStatusMessageT = Aws::String>
104 void SetIngestionStatusMessage(IngestionStatusMessageT&& value) {
105 m_ingestionStatusMessageHasBeenSet = true;
106 m_ingestionStatusMessage = std::forward<IngestionStatusMessageT>(value);
107 }
108 template <typename IngestionStatusMessageT = Aws::String>
110 SetIngestionStatusMessage(std::forward<IngestionStatusMessageT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::Utils::DateTime& GetEarliestDatapointTimestamp() const { return m_earliestDatapointTimestamp; }
122 template <typename EarliestDatapointTimestampT = Aws::Utils::DateTime>
123 void SetEarliestDatapointTimestamp(EarliestDatapointTimestampT&& value) {
124 m_earliestDatapointTimestampHasBeenSet = true;
125 m_earliestDatapointTimestamp = std::forward<EarliestDatapointTimestampT>(value);
126 }
127 template <typename EarliestDatapointTimestampT = Aws::Utils::DateTime>
129 SetEarliestDatapointTimestamp(std::forward<EarliestDatapointTimestampT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Utils::DateTime& GetLatestDatapointTimestamp() const { return m_latestDatapointTimestamp; }
140 template <typename LatestDatapointTimestampT = Aws::Utils::DateTime>
141 void SetLatestDatapointTimestamp(LatestDatapointTimestampT&& value) {
142 m_latestDatapointTimestampHasBeenSet = true;
143 m_latestDatapointTimestamp = std::forward<LatestDatapointTimestampT>(value);
144 }
145 template <typename LatestDatapointTimestampT = Aws::Utils::DateTime>
147 SetLatestDatapointTimestamp(std::forward<LatestDatapointTimestampT>(value));
148 return *this;
149 }
151
153
154 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
155 template <typename ResponseMetadataT = ResponseMetadata>
156 void SetResponseMetadata(ResponseMetadataT&& value) {
157 m_responseMetadataHasBeenSet = true;
158 m_responseMetadata = std::forward<ResponseMetadataT>(value);
159 }
160 template <typename ResponseMetadataT = ResponseMetadata>
162 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
163 return *this;
164 }
166 private:
168
169 bool m_organizationsAccess{false};
170
171 int m_dataExportCount{0};
172
173 IngestionStatus m_ingestionStatus{IngestionStatus::NOT_SET};
174
175 Aws::String m_ingestionStatusMessage;
176
177 Aws::Utils::DateTime m_earliestDatapointTimestamp{};
178
179 Aws::Utils::DateTime m_latestDatapointTimestamp{};
180
181 ResponseMetadata m_responseMetadata;
182 bool m_capacityManagerStatusHasBeenSet = false;
183 bool m_organizationsAccessHasBeenSet = false;
184 bool m_dataExportCountHasBeenSet = false;
185 bool m_ingestionStatusHasBeenSet = false;
186 bool m_ingestionStatusMessageHasBeenSet = false;
187 bool m_earliestDatapointTimestampHasBeenSet = false;
188 bool m_latestDatapointTimestampHasBeenSet = false;
189 bool m_responseMetadataHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace EC2
194} // 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