/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace WorkSpaces { namespace Model { /** */ class AuthorizeIpRulesRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API AuthorizeIpRulesRequest(); // 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 "AuthorizeIpRules"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 AuthorizeIpRulesRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The identifier of the group.

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

The identifier of the group.

*/ inline AuthorizeIpRulesRequest& WithGroupId(const char* value) { SetGroupId(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 AuthorizeIpRulesRequest& WithUserRules(const Aws::Vector& value) { SetUserRules(value); return *this;} /** *

The rules to add to the group.

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

The rules to add to the group.

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

The rules to add to the group.

*/ inline AuthorizeIpRulesRequest& 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::Vector m_userRules; bool m_userRulesHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws