/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkMail { namespace Model { /** *

The impersonation rule that matched the input.

See Also:

AWS * API Reference

*/ class ImpersonationMatchedRule { public: AWS_WORKMAIL_API ImpersonationMatchedRule(); AWS_WORKMAIL_API ImpersonationMatchedRule(Aws::Utils::Json::JsonView jsonValue); AWS_WORKMAIL_API ImpersonationMatchedRule& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the rule that matched the input

*/ inline const Aws::String& GetImpersonationRuleId() const{ return m_impersonationRuleId; } /** *

The ID of the rule that matched the input

*/ inline bool ImpersonationRuleIdHasBeenSet() const { return m_impersonationRuleIdHasBeenSet; } /** *

The ID of the rule that matched the input

*/ inline void SetImpersonationRuleId(const Aws::String& value) { m_impersonationRuleIdHasBeenSet = true; m_impersonationRuleId = value; } /** *

The ID of the rule that matched the input

*/ inline void SetImpersonationRuleId(Aws::String&& value) { m_impersonationRuleIdHasBeenSet = true; m_impersonationRuleId = std::move(value); } /** *

The ID of the rule that matched the input

*/ inline void SetImpersonationRuleId(const char* value) { m_impersonationRuleIdHasBeenSet = true; m_impersonationRuleId.assign(value); } /** *

The ID of the rule that matched the input

*/ inline ImpersonationMatchedRule& WithImpersonationRuleId(const Aws::String& value) { SetImpersonationRuleId(value); return *this;} /** *

The ID of the rule that matched the input

*/ inline ImpersonationMatchedRule& WithImpersonationRuleId(Aws::String&& value) { SetImpersonationRuleId(std::move(value)); return *this;} /** *

The ID of the rule that matched the input

*/ inline ImpersonationMatchedRule& WithImpersonationRuleId(const char* value) { SetImpersonationRuleId(value); return *this;} /** *

The name of the rule that matched the input.

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

The name of the rule that matched the input.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the rule that matched the input.

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

The name of the rule that matched the input.

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

The name of the rule that matched the input.

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

The name of the rule that matched the input.

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

The name of the rule that matched the input.

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

The name of the rule that matched the input.

*/ inline ImpersonationMatchedRule& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_impersonationRuleId; bool m_impersonationRuleIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws