/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 GetMobileDeviceAccessEffectResult { public: AWS_WORKMAIL_API GetMobileDeviceAccessEffectResult(); AWS_WORKMAIL_API GetMobileDeviceAccessEffectResult(const Aws::AmazonWebServiceResult& result); AWS_WORKMAIL_API GetMobileDeviceAccessEffectResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The effect of the simulated access, ALLOW or DENY, * after evaluating mobile device access rules in the WorkMail organization for the * simulated user parameters.

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

The effect of the simulated access, ALLOW or DENY, * after evaluating mobile device access rules in the WorkMail organization for the * simulated user parameters.

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

The effect of the simulated access, ALLOW or DENY, * after evaluating mobile device access rules in the WorkMail organization for the * simulated user parameters.

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

The effect of the simulated access, ALLOW or DENY, * after evaluating mobile device access rules in the WorkMail organization for the * simulated user parameters.

*/ inline GetMobileDeviceAccessEffectResult& WithEffect(const MobileDeviceAccessRuleEffect& value) { SetEffect(value); return *this;} /** *

The effect of the simulated access, ALLOW or DENY, * after evaluating mobile device access rules in the WorkMail organization for the * simulated user parameters.

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

A list of the rules which matched the simulated user input and produced the * effect.

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

A list of the rules which matched the simulated user input and produced the * effect.

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

A list of the rules which matched the simulated user input and produced the * effect.

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

A list of the rules which matched the simulated user input and produced the * effect.

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

A list of the rules which matched the simulated user input and produced the * effect.

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

A list of the rules which matched the simulated user input and produced the * effect.

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

A list of the rules which matched the simulated user input and produced the * effect.

*/ inline GetMobileDeviceAccessEffectResult& AddMatchedRules(MobileDeviceAccessMatchedRule&& 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 GetMobileDeviceAccessEffectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMobileDeviceAccessEffectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMobileDeviceAccessEffectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: MobileDeviceAccessRuleEffect m_effect; Aws::Vector m_matchedRules; Aws::String m_requestId; }; } // namespace Model } // namespace WorkMail } // namespace Aws