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/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();
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 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 Status& GetStatus() const{ return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
64 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
65 inline AccountEnrollmentStatus& WithStatus(const Status& value) { SetStatus(value); return *this;}
66 inline AccountEnrollmentStatus& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
68
70
75 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
76 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
77 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
78 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
79 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
80 inline AccountEnrollmentStatus& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
81 inline AccountEnrollmentStatus& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
82 inline AccountEnrollmentStatus& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
91 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
92 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
93 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
97 private:
98
99 Aws::String m_accountId;
100 bool m_accountIdHasBeenSet = false;
101
102 Status m_status;
103 bool m_statusHasBeenSet = false;
104
105 Aws::String m_statusReason;
106 bool m_statusReasonHasBeenSet = false;
107
108 Aws::Utils::DateTime m_lastUpdatedTimestamp;
109 bool m_lastUpdatedTimestampHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ComputeOptimizer
114} // namespace Aws
AccountEnrollmentStatus & WithStatusReason(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
AccountEnrollmentStatus & WithAccountId(Aws::String &&value)
AccountEnrollmentStatus & WithStatusReason(const Aws::String &value)
AccountEnrollmentStatus & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
AccountEnrollmentStatus & WithStatus(const Status &value)
AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue)
AccountEnrollmentStatus & WithStatusReason(const char *value)
AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountEnrollmentStatus & WithAccountId(const char *value)
AccountEnrollmentStatus & WithStatus(Status &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AccountEnrollmentStatus & WithAccountId(const Aws::String &value)
AccountEnrollmentStatus & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue