/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ComputeOptimizer { namespace Model { /** *

Describes the enrollment status of an organization's member accounts in * Compute Optimizer.

See Also:

AWS * API Reference

*/ class AccountEnrollmentStatus { public: AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus(); AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus(Aws::Utils::Json::JsonView jsonValue); AWS_COMPUTEOPTIMIZER_API AccountEnrollmentStatus& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Web Services account ID.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account ID.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account ID.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account ID.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account ID.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account ID.

*/ inline AccountEnrollmentStatus& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID.

*/ inline AccountEnrollmentStatus& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID.

*/ inline AccountEnrollmentStatus& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The account enrollment status.

*/ inline const Status& GetStatus() const{ return m_status; } /** *

The account enrollment status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The account enrollment status.

*/ inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The account enrollment status.

*/ inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The account enrollment status.

*/ inline AccountEnrollmentStatus& WithStatus(const Status& value) { SetStatus(value); return *this;} /** *

The account enrollment status.

*/ inline AccountEnrollmentStatus& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline AccountEnrollmentStatus& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline AccountEnrollmentStatus& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

The reason for the account enrollment status.

For example, an account * might show a status of Pending because member accounts of an * organization require more time to be enrolled in the service.

*/ inline AccountEnrollmentStatus& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

The Unix epoch timestamp, in seconds, of when the account enrollment status * was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } /** *

The Unix epoch timestamp, in seconds, of when the account enrollment status * was last updated.

*/ inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; } /** *

The Unix epoch timestamp, in seconds, of when the account enrollment status * was last updated.

*/ inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; } /** *

The Unix epoch timestamp, in seconds, of when the account enrollment status * was last updated.

*/ inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); } /** *

The Unix epoch timestamp, in seconds, of when the account enrollment status * was last updated.

*/ inline AccountEnrollmentStatus& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} /** *

The Unix epoch timestamp, in seconds, of when the account enrollment status * was last updated.

*/ inline AccountEnrollmentStatus& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Status m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTimestamp; bool m_lastUpdatedTimestampHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws