/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ComputeOptimizer { namespace Model { class AWS_COMPUTEOPTIMIZER_API GetEnrollmentStatusResult { public: GetEnrollmentStatusResult(); GetEnrollmentStatusResult(const Aws::AmazonWebServiceResult& result); 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 within the organization, if * the account is a master account of an organization.

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

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

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

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

*/ inline GetEnrollmentStatusResult& WithMemberAccountsEnrolled(bool value) { SetMemberAccountsEnrolled(value); return *this;} private: Status m_status; Aws::String m_statusReason; bool m_memberAccountsEnrolled; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws