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

Describes an IP access control group.

See Also:

AWS * API Reference

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

The identifier of the group.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The identifier of the group.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The identifier of the group.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The identifier of the group.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The identifier of the group.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The identifier of the group.

*/ inline WorkspacesIpGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The identifier of the group.

*/ inline WorkspacesIpGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The identifier of the group.

*/ inline WorkspacesIpGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

The name of the group.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The name of the group.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The name of the group.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The name of the group.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The name of the group.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The name of the group.

*/ inline WorkspacesIpGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The name of the group.

*/ inline WorkspacesIpGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The name of the group.

*/ inline WorkspacesIpGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The description of the group.

*/ inline const Aws::String& GetGroupDesc() const{ return m_groupDesc; } /** *

The description of the group.

*/ inline bool GroupDescHasBeenSet() const { return m_groupDescHasBeenSet; } /** *

The description of the group.

*/ inline void SetGroupDesc(const Aws::String& value) { m_groupDescHasBeenSet = true; m_groupDesc = value; } /** *

The description of the group.

*/ inline void SetGroupDesc(Aws::String&& value) { m_groupDescHasBeenSet = true; m_groupDesc = std::move(value); } /** *

The description of the group.

*/ inline void SetGroupDesc(const char* value) { m_groupDescHasBeenSet = true; m_groupDesc.assign(value); } /** *

The description of the group.

*/ inline WorkspacesIpGroup& WithGroupDesc(const Aws::String& value) { SetGroupDesc(value); return *this;} /** *

The description of the group.

*/ inline WorkspacesIpGroup& WithGroupDesc(Aws::String&& value) { SetGroupDesc(std::move(value)); return *this;} /** *

The description of the group.

*/ inline WorkspacesIpGroup& WithGroupDesc(const char* value) { SetGroupDesc(value); return *this;} /** *

The rules.

*/ inline const Aws::Vector& GetUserRules() const{ return m_userRules; } /** *

The rules.

*/ inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; } /** *

The rules.

*/ inline void SetUserRules(const Aws::Vector& value) { m_userRulesHasBeenSet = true; m_userRules = value; } /** *

The rules.

*/ inline void SetUserRules(Aws::Vector&& value) { m_userRulesHasBeenSet = true; m_userRules = std::move(value); } /** *

The rules.

*/ inline WorkspacesIpGroup& WithUserRules(const Aws::Vector& value) { SetUserRules(value); return *this;} /** *

The rules.

*/ inline WorkspacesIpGroup& WithUserRules(Aws::Vector&& value) { SetUserRules(std::move(value)); return *this;} /** *

The rules.

*/ inline WorkspacesIpGroup& AddUserRules(const IpRuleItem& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; } /** *

The rules.

*/ inline WorkspacesIpGroup& AddUserRules(IpRuleItem&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; } private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_groupDesc; bool m_groupDescHasBeenSet = false; Aws::Vector m_userRules; bool m_userRulesHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws