/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WorkMail { namespace Model { class GetImpersonationRoleResult { public: AWS_WORKMAIL_API GetImpersonationRoleResult(); AWS_WORKMAIL_API GetImpersonationRoleResult(const Aws::AmazonWebServiceResult& result); AWS_WORKMAIL_API GetImpersonationRoleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The impersonation role ID.

*/ inline const Aws::String& GetImpersonationRoleId() const{ return m_impersonationRoleId; } /** *

The impersonation role ID.

*/ inline void SetImpersonationRoleId(const Aws::String& value) { m_impersonationRoleId = value; } /** *

The impersonation role ID.

*/ inline void SetImpersonationRoleId(Aws::String&& value) { m_impersonationRoleId = std::move(value); } /** *

The impersonation role ID.

*/ inline void SetImpersonationRoleId(const char* value) { m_impersonationRoleId.assign(value); } /** *

The impersonation role ID.

*/ inline GetImpersonationRoleResult& WithImpersonationRoleId(const Aws::String& value) { SetImpersonationRoleId(value); return *this;} /** *

The impersonation role ID.

*/ inline GetImpersonationRoleResult& WithImpersonationRoleId(Aws::String&& value) { SetImpersonationRoleId(std::move(value)); return *this;} /** *

The impersonation role ID.

*/ inline GetImpersonationRoleResult& WithImpersonationRoleId(const char* value) { SetImpersonationRoleId(value); return *this;} /** *

The impersonation role name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The impersonation role name.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The impersonation role name.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The impersonation role name.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The impersonation role name.

*/ inline GetImpersonationRoleResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The impersonation role name.

*/ inline GetImpersonationRoleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The impersonation role name.

*/ inline GetImpersonationRoleResult& WithName(const char* value) { SetName(value); return *this;} /** *

The impersonation role type.

*/ inline const ImpersonationRoleType& GetType() const{ return m_type; } /** *

The impersonation role type.

*/ inline void SetType(const ImpersonationRoleType& value) { m_type = value; } /** *

The impersonation role type.

*/ inline void SetType(ImpersonationRoleType&& value) { m_type = std::move(value); } /** *

The impersonation role type.

*/ inline GetImpersonationRoleResult& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;} /** *

The impersonation role type.

*/ inline GetImpersonationRoleResult& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;} /** *

The impersonation role description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The impersonation role description.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The impersonation role description.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The impersonation role description.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The impersonation role description.

*/ inline GetImpersonationRoleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The impersonation role description.

*/ inline GetImpersonationRoleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The impersonation role description.

*/ inline GetImpersonationRoleResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The list of rules for the given impersonation role.

*/ inline const Aws::Vector& GetRules() const{ return m_rules; } /** *

The list of rules for the given impersonation role.

*/ inline void SetRules(const Aws::Vector& value) { m_rules = value; } /** *

The list of rules for the given impersonation role.

*/ inline void SetRules(Aws::Vector&& value) { m_rules = std::move(value); } /** *

The list of rules for the given impersonation role.

*/ inline GetImpersonationRoleResult& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} /** *

The list of rules for the given impersonation role.

*/ inline GetImpersonationRoleResult& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} /** *

The list of rules for the given impersonation role.

*/ inline GetImpersonationRoleResult& AddRules(const ImpersonationRule& value) { m_rules.push_back(value); return *this; } /** *

The list of rules for the given impersonation role.

*/ inline GetImpersonationRoleResult& AddRules(ImpersonationRule&& value) { m_rules.push_back(std::move(value)); return *this; } /** *

The date when the impersonation role was created.

*/ inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; } /** *

The date when the impersonation role was created.

*/ inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreated = value; } /** *

The date when the impersonation role was created.

*/ inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreated = std::move(value); } /** *

The date when the impersonation role was created.

*/ inline GetImpersonationRoleResult& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;} /** *

The date when the impersonation role was created.

*/ inline GetImpersonationRoleResult& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;} /** *

The date when the impersonation role was last modified.

*/ inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; } /** *

The date when the impersonation role was last modified.

*/ inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModified = value; } /** *

The date when the impersonation role was last modified.

*/ inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModified = std::move(value); } /** *

The date when the impersonation role was last modified.

*/ inline GetImpersonationRoleResult& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;} /** *

The date when the impersonation role was last modified.

*/ inline GetImpersonationRoleResult& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(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 GetImpersonationRoleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetImpersonationRoleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetImpersonationRoleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_impersonationRoleId; Aws::String m_name; ImpersonationRoleType m_type; Aws::String m_description; Aws::Vector m_rules; Aws::Utils::DateTime m_dateCreated; Aws::Utils::DateTime m_dateModified; Aws::String m_requestId; }; } // namespace Model } // namespace WorkMail } // namespace Aws