/** * 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 WorkSpaces { namespace Model { /** */ class DescribeIpGroupsRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API DescribeIpGroupsRequest(); // 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 "DescribeIpGroups"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifiers of one or more IP access control groups.

*/ inline const Aws::Vector& GetGroupIds() const{ return m_groupIds; } /** *

The identifiers of one or more IP access control groups.

*/ inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; } /** *

The identifiers of one or more IP access control groups.

*/ inline void SetGroupIds(const Aws::Vector& value) { m_groupIdsHasBeenSet = true; m_groupIds = value; } /** *

The identifiers of one or more IP access control groups.

*/ inline void SetGroupIds(Aws::Vector&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::move(value); } /** *

The identifiers of one or more IP access control groups.

*/ inline DescribeIpGroupsRequest& WithGroupIds(const Aws::Vector& value) { SetGroupIds(value); return *this;} /** *

The identifiers of one or more IP access control groups.

*/ inline DescribeIpGroupsRequest& WithGroupIds(Aws::Vector&& value) { SetGroupIds(std::move(value)); return *this;} /** *

The identifiers of one or more IP access control groups.

*/ inline DescribeIpGroupsRequest& AddGroupIds(const Aws::String& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; } /** *

The identifiers of one or more IP access control groups.

*/ inline DescribeIpGroupsRequest& AddGroupIds(Aws::String&& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(std::move(value)); return *this; } /** *

The identifiers of one or more IP access control groups.

*/ inline DescribeIpGroupsRequest& AddGroupIds(const char* value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; } /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline DescribeIpGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline DescribeIpGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If you received a NextToken from a previous call that was * paginated, provide this token to receive the next set of results.

*/ inline DescribeIpGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of items to return.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of items to return.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of items to return.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of items to return.

*/ inline DescribeIpGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_groupIds; bool m_groupIdsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws