/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ComputeOptimizer { namespace Model { class GetEnrollmentStatusResult { public: AWS_COMPUTEOPTIMIZER_API GetEnrollmentStatusResult(); AWS_COMPUTEOPTIMIZER_API GetEnrollmentStatusResult(const Aws::AmazonWebServiceResult& result); AWS_COMPUTEOPTIMIZER_API GetEnrollmentStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The enrollment status of the account.

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

The enrollment status of the account.

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

The enrollment status of the account.

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

The enrollment status of the account.

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

The enrollment status of the account.

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

The reason for the enrollment status of the account.

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 enrollment status of the account.

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_statusReason = value; } /** *

The reason for the enrollment status of the account.

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_statusReason = std::move(value); } /** *

The reason for the enrollment status of the account.

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_statusReason.assign(value); } /** *

The reason for the enrollment status of the account.

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 GetEnrollmentStatusResult& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

The reason for the enrollment status of the account.

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 GetEnrollmentStatusResult& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

The reason for the enrollment status of the account.

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 GetEnrollmentStatusResult& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

Confirms the enrollment status of member accounts of the organization, if the * account is a management account of an organization.

*/ inline bool GetMemberAccountsEnrolled() const{ return m_memberAccountsEnrolled; } /** *

Confirms the enrollment status of member accounts of the organization, if the * account is a management account of an organization.

*/ inline void SetMemberAccountsEnrolled(bool value) { m_memberAccountsEnrolled = value; } /** *

Confirms the enrollment status of member accounts of the organization, if the * account is a management account of an organization.

*/ inline GetEnrollmentStatusResult& WithMemberAccountsEnrolled(bool value) { SetMemberAccountsEnrolled(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 void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { 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_lastUpdatedTimestamp = std::move(value); } /** *

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

*/ inline GetEnrollmentStatusResult& 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 GetEnrollmentStatusResult& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} /** *

The count of organization member accounts that are opted in to the service, * if your account is an organization management account.

*/ inline int GetNumberOfMemberAccountsOptedIn() const{ return m_numberOfMemberAccountsOptedIn; } /** *

The count of organization member accounts that are opted in to the service, * if your account is an organization management account.

*/ inline void SetNumberOfMemberAccountsOptedIn(int value) { m_numberOfMemberAccountsOptedIn = value; } /** *

The count of organization member accounts that are opted in to the service, * if your account is an organization management account.

*/ inline GetEnrollmentStatusResult& WithNumberOfMemberAccountsOptedIn(int value) { SetNumberOfMemberAccountsOptedIn(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetEnrollmentStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetEnrollmentStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetEnrollmentStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Status m_status; Aws::String m_statusReason; bool m_memberAccountsEnrolled; Aws::Utils::DateTime m_lastUpdatedTimestamp; int m_numberOfMemberAccountsOptedIn; Aws::String m_requestId; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws