/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace WorkSpaces { namespace Model { /** */ class CreateIpGroupRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API CreateIpGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateIpGroup"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 CreateIpGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The name of the group.

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

The name of the group.

*/ inline CreateIpGroupRequest& 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 CreateIpGroupRequest& WithGroupDesc(const Aws::String& value) { SetGroupDesc(value); return *this;} /** *

The description of the group.

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

The description of the group.

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

The rules to add to the group.

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

The rules to add to the group.

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

The rules to add to the group.

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

The rules to add to the group.

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

The rules to add to the group.

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

The rules to add to the group.

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

The rules to add to the group.

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

The rules to add to the group.

*/ inline CreateIpGroupRequest& AddUserRules(IpRuleItem&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; } /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline CreateIpGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline CreateIpGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline CreateIpGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags. Each WorkSpaces resource can have a maximum of 50 tags.

*/ inline CreateIpGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_groupDesc; bool m_groupDescHasBeenSet = false; Aws::Vector m_userRules; bool m_userRulesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws