AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline AccountEnrollmentStatus& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline AccountEnrollmentStatus& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline AccountEnrollmentStatus& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
61 inline const EnrollmentStatus& GetStatus() const{ return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(const EnrollmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
64 inline void SetStatus(EnrollmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
65 inline AccountEnrollmentStatus& WithStatus(const EnrollmentStatus& value) { SetStatus(value); return *this;}
66 inline AccountEnrollmentStatus& WithStatus(EnrollmentStatus&& value) { SetStatus(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
74 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
75 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
76 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
80
82
85 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
86 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
87 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
88 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
90 inline AccountEnrollmentStatus& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
92 private:
93
94 Aws::String m_accountId;
95 bool m_accountIdHasBeenSet = false;
96
97 EnrollmentStatus m_status;
98 bool m_statusHasBeenSet = false;
99
100 Aws::Utils::DateTime m_lastUpdatedTimestamp;
101 bool m_lastUpdatedTimestampHasBeenSet = false;
102
103 Aws::Utils::DateTime m_createdTimestamp;
104 bool m_createdTimestampHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CostOptimizationHub
109} // namespace Aws
AccountEnrollmentStatus & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
AccountEnrollmentStatus & WithAccountId(const char *value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountEnrollmentStatus & WithStatus(EnrollmentStatus &&value)
AccountEnrollmentStatus & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
AccountEnrollmentStatus & WithStatus(const EnrollmentStatus &value)
AccountEnrollmentStatus & WithAccountId(Aws::String &&value)
AccountEnrollmentStatus & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
AccountEnrollmentStatus & WithAccountId(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue)
AccountEnrollmentStatus & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue