AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AccountEnrollmentStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
10#include <aws/cost-optimization-hub/model/EnrollmentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostOptimizationHub {
22namespace Model {
23
31 public:
32 AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus() = default;
33 AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COSTOPTIMIZATIONHUB_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 EnrollmentStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(EnrollmentStatus value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
76 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
77 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
78 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
79 m_lastUpdatedTimestampHasBeenSet = true;
80 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
81 }
82 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
83 AccountEnrollmentStatus& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
84 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
94 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
95 template <typename CreatedTimestampT = Aws::Utils::DateTime>
96 void SetCreatedTimestamp(CreatedTimestampT&& value) {
97 m_createdTimestampHasBeenSet = true;
98 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
99 }
100 template <typename CreatedTimestampT = Aws::Utils::DateTime>
101 AccountEnrollmentStatus& WithCreatedTimestamp(CreatedTimestampT&& value) {
102 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_accountId;
108
110
111 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
112
113 Aws::Utils::DateTime m_createdTimestamp{};
114 bool m_accountIdHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_lastUpdatedTimestampHasBeenSet = false;
117 bool m_createdTimestampHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CostOptimizationHub
122} // namespace Aws
AccountEnrollmentStatus & WithStatus(EnrollmentStatus value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountEnrollmentStatus & WithAccountId(AccountIdT &&value)
AccountEnrollmentStatus & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
AccountEnrollmentStatus & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus()=default
AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue