/** * 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 GetImpersonationRoleEffectResult { public: AWS_WORKMAIL_API GetImpersonationRoleEffectResult(); AWS_WORKMAIL_API GetImpersonationRoleEffectResult(const Aws::AmazonWebServiceResult& result); AWS_WORKMAIL_API GetImpersonationRoleEffectResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 GetImpersonationRoleEffectResult& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;} /** *

The impersonation role type.

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

Effect of the impersonation role on the target user based on its * rules. Available effects are ALLOW or DENY.

*/ inline const AccessEffect& GetEffect() const{ return m_effect; } /** *

Effect of the impersonation role on the target user based on its * rules. Available effects are ALLOW or DENY.

*/ inline void SetEffect(const AccessEffect& value) { m_effect = value; } /** *

Effect of the impersonation role on the target user based on its * rules. Available effects are ALLOW or DENY.

*/ inline void SetEffect(AccessEffect&& value) { m_effect = std::move(value); } /** *

Effect of the impersonation role on the target user based on its * rules. Available effects are ALLOW or DENY.

*/ inline GetImpersonationRoleEffectResult& WithEffect(const AccessEffect& value) { SetEffect(value); return *this;} /** *

Effect of the impersonation role on the target user based on its * rules. Available effects are ALLOW or DENY.

*/ inline GetImpersonationRoleEffectResult& WithEffect(AccessEffect&& value) { SetEffect(std::move(value)); return *this;} /** *

A list of the rules that match the input and produce the configured * effect.

*/ inline const Aws::Vector& GetMatchedRules() const{ return m_matchedRules; } /** *

A list of the rules that match the input and produce the configured * effect.

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

A list of the rules that match the input and produce the configured * effect.

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

A list of the rules that match the input and produce the configured * effect.

*/ inline GetImpersonationRoleEffectResult& WithMatchedRules(const Aws::Vector& value) { SetMatchedRules(value); return *this;} /** *

A list of the rules that match the input and produce the configured * effect.

*/ inline GetImpersonationRoleEffectResult& WithMatchedRules(Aws::Vector&& value) { SetMatchedRules(std::move(value)); return *this;} /** *

A list of the rules that match the input and produce the configured * effect.

*/ inline GetImpersonationRoleEffectResult& AddMatchedRules(const ImpersonationMatchedRule& value) { m_matchedRules.push_back(value); return *this; } /** *

A list of the rules that match the input and produce the configured * effect.

*/ inline GetImpersonationRoleEffectResult& AddMatchedRules(ImpersonationMatchedRule&& value) { m_matchedRules.push_back(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 GetImpersonationRoleEffectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetImpersonationRoleEffectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetImpersonationRoleEffectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ImpersonationRoleType m_type; AccessEffect m_effect; Aws::Vector m_matchedRules; Aws::String m_requestId; }; } // namespace Model } // namespace WorkMail } // namespace Aws