/** * 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 rule that a simulated user matches.

See Also:

AWS * API Reference

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

Identifier of the rule that a simulated user matches.

*/ inline const Aws::String& GetMobileDeviceAccessRuleId() const{ return m_mobileDeviceAccessRuleId; } /** *

Identifier of the rule that a simulated user matches.

*/ inline bool MobileDeviceAccessRuleIdHasBeenSet() const { return m_mobileDeviceAccessRuleIdHasBeenSet; } /** *

Identifier of the rule that a simulated user matches.

*/ inline void SetMobileDeviceAccessRuleId(const Aws::String& value) { m_mobileDeviceAccessRuleIdHasBeenSet = true; m_mobileDeviceAccessRuleId = value; } /** *

Identifier of the rule that a simulated user matches.

*/ inline void SetMobileDeviceAccessRuleId(Aws::String&& value) { m_mobileDeviceAccessRuleIdHasBeenSet = true; m_mobileDeviceAccessRuleId = std::move(value); } /** *

Identifier of the rule that a simulated user matches.

*/ inline void SetMobileDeviceAccessRuleId(const char* value) { m_mobileDeviceAccessRuleIdHasBeenSet = true; m_mobileDeviceAccessRuleId.assign(value); } /** *

Identifier of the rule that a simulated user matches.

*/ inline MobileDeviceAccessMatchedRule& WithMobileDeviceAccessRuleId(const Aws::String& value) { SetMobileDeviceAccessRuleId(value); return *this;} /** *

Identifier of the rule that a simulated user matches.

*/ inline MobileDeviceAccessMatchedRule& WithMobileDeviceAccessRuleId(Aws::String&& value) { SetMobileDeviceAccessRuleId(std::move(value)); return *this;} /** *

Identifier of the rule that a simulated user matches.

*/ inline MobileDeviceAccessMatchedRule& WithMobileDeviceAccessRuleId(const char* value) { SetMobileDeviceAccessRuleId(value); return *this;} /** *

Name of a rule that a simulated user matches.

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

Name of a rule that a simulated user matches.

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

Name of a rule that a simulated user matches.

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

Name of a rule that a simulated user matches.

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

Name of a rule that a simulated user matches.

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

Name of a rule that a simulated user matches.

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

Name of a rule that a simulated user matches.

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

Name of a rule that a simulated user matches.

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