AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AccountEnrollmentStatus.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/Status.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ComputeOptimizer {
22namespace Model {
23
31 public:
32 AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus() = default;
33 AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline Status GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(Status value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
77 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
78 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
79 template <typename StatusReasonT = Aws::String>
80 void SetStatusReason(StatusReasonT&& value) {
81 m_statusReasonHasBeenSet = true;
82 m_statusReason = std::forward<StatusReasonT>(value);
83 }
84 template <typename StatusReasonT = Aws::String>
85 AccountEnrollmentStatus& WithStatusReason(StatusReasonT&& value) {
86 SetStatusReason(std::forward<StatusReasonT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
97 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
98 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
99 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
100 m_lastUpdatedTimestampHasBeenSet = true;
101 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
102 }
103 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
104 AccountEnrollmentStatus& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
105 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_accountId;
111
112 Status m_status{Status::NOT_SET};
113
114 Aws::String m_statusReason;
115
116 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
117 bool m_accountIdHasBeenSet = false;
118 bool m_statusHasBeenSet = false;
119 bool m_statusReasonHasBeenSet = false;
120 bool m_lastUpdatedTimestampHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace ComputeOptimizer
125} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
AccountEnrollmentStatus & WithStatusReason(StatusReasonT &&value)
AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue)
AccountEnrollmentStatus & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus()=default
AccountEnrollmentStatus & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue