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/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cost-optimization-hub/model/EnrollmentStatus.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 CostOptimizationHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus() = default;
38 AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTOPTIMIZATIONHUB_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 EnrollmentStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(EnrollmentStatus value) { m_statusHasBeenSet = true; m_status = value; }
62 inline AccountEnrollmentStatus& WithStatus(EnrollmentStatus value) { SetStatus(value); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
70 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
71 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
72 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
73 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
74 AccountEnrollmentStatus& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
82 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
83 template<typename CreatedTimestampT = Aws::Utils::DateTime>
84 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
85 template<typename CreatedTimestampT = Aws::Utils::DateTime>
86 AccountEnrollmentStatus& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
88 private:
89
90 Aws::String m_accountId;
91 bool m_accountIdHasBeenSet = false;
92
94 bool m_statusHasBeenSet = false;
95
96 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
97 bool m_lastUpdatedTimestampHasBeenSet = false;
98
99 Aws::Utils::DateTime m_createdTimestamp{};
100 bool m_createdTimestampHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CostOptimizationHub
105} // 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