/** * 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 WorkSpaces { namespace Model { /** *

Describes a rule for an IP access control group.

See Also:

* AWS * API Reference

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

The IP address range, in CIDR notation.

*/ inline const Aws::String& GetIpRule() const{ return m_ipRule; } /** *

The IP address range, in CIDR notation.

*/ inline bool IpRuleHasBeenSet() const { return m_ipRuleHasBeenSet; } /** *

The IP address range, in CIDR notation.

*/ inline void SetIpRule(const Aws::String& value) { m_ipRuleHasBeenSet = true; m_ipRule = value; } /** *

The IP address range, in CIDR notation.

*/ inline void SetIpRule(Aws::String&& value) { m_ipRuleHasBeenSet = true; m_ipRule = std::move(value); } /** *

The IP address range, in CIDR notation.

*/ inline void SetIpRule(const char* value) { m_ipRuleHasBeenSet = true; m_ipRule.assign(value); } /** *

The IP address range, in CIDR notation.

*/ inline IpRuleItem& WithIpRule(const Aws::String& value) { SetIpRule(value); return *this;} /** *

The IP address range, in CIDR notation.

*/ inline IpRuleItem& WithIpRule(Aws::String&& value) { SetIpRule(std::move(value)); return *this;} /** *

The IP address range, in CIDR notation.

*/ inline IpRuleItem& WithIpRule(const char* value) { SetIpRule(value); return *this;} /** *

The description.

*/ inline const Aws::String& GetRuleDesc() const{ return m_ruleDesc; } /** *

The description.

*/ inline bool RuleDescHasBeenSet() const { return m_ruleDescHasBeenSet; } /** *

The description.

*/ inline void SetRuleDesc(const Aws::String& value) { m_ruleDescHasBeenSet = true; m_ruleDesc = value; } /** *

The description.

*/ inline void SetRuleDesc(Aws::String&& value) { m_ruleDescHasBeenSet = true; m_ruleDesc = std::move(value); } /** *

The description.

*/ inline void SetRuleDesc(const char* value) { m_ruleDescHasBeenSet = true; m_ruleDesc.assign(value); } /** *

The description.

*/ inline IpRuleItem& WithRuleDesc(const Aws::String& value) { SetRuleDesc(value); return *this;} /** *

The description.

*/ inline IpRuleItem& WithRuleDesc(Aws::String&& value) { SetRuleDesc(std::move(value)); return *this;} /** *

The description.

*/ inline IpRuleItem& WithRuleDesc(const char* value) { SetRuleDesc(value); return *this;} private: Aws::String m_ipRule; bool m_ipRuleHasBeenSet = false; Aws::String m_ruleDesc; bool m_ruleDescHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws