AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountEnrollmentStatus.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/compute-optimizer/model/Status.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus() = default;
38 AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccountId() const { return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 AccountEnrollmentStatus& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
59 inline Status GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
62 inline AccountEnrollmentStatus& WithStatus(Status value) { SetStatus(value); return *this;}
64
66
71 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
72 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
73 template<typename StatusReasonT = Aws::String>
74 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
75 template<typename StatusReasonT = Aws::String>
76 AccountEnrollmentStatus& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
78
80
84 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
85 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
86 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
87 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
88 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
89 AccountEnrollmentStatus& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
91 private:
92
93 Aws::String m_accountId;
94 bool m_accountIdHasBeenSet = false;
95
96 Status m_status{Status::NOT_SET};
97 bool m_statusHasBeenSet = false;
98
99 Aws::String m_statusReason;
100 bool m_statusReasonHasBeenSet = false;
101
102 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
103 bool m_lastUpdatedTimestampHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace ComputeOptimizer
108} // 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