/** * 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 DescribeWorkspaceImagesRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API DescribeWorkspaceImagesRequest(); // 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 "DescribeWorkspaceImages"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the image.

*/ inline const Aws::Vector& GetImageIds() const{ return m_imageIds; } /** *

The identifier of the image.

*/ inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; } /** *

The identifier of the image.

*/ inline void SetImageIds(const Aws::Vector& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; } /** *

The identifier of the image.

*/ inline void SetImageIds(Aws::Vector&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); } /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagesRequest& WithImageIds(const Aws::Vector& value) { SetImageIds(value); return *this;} /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagesRequest& WithImageIds(Aws::Vector&& value) { SetImageIds(std::move(value)); return *this;} /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagesRequest& AddImageIds(const Aws::String& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; } /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagesRequest& AddImageIds(Aws::String&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; } /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagesRequest& AddImageIds(const char* value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; } /** *

The type (owned or shared) of the image.

*/ inline const ImageType& GetImageType() const{ return m_imageType; } /** *

The type (owned or shared) of the image.

*/ inline bool ImageTypeHasBeenSet() const { return m_imageTypeHasBeenSet; } /** *

The type (owned or shared) of the image.

*/ inline void SetImageType(const ImageType& value) { m_imageTypeHasBeenSet = true; m_imageType = value; } /** *

The type (owned or shared) of the image.

*/ inline void SetImageType(ImageType&& value) { m_imageTypeHasBeenSet = true; m_imageType = std::move(value); } /** *

The type (owned or shared) of the image.

*/ inline DescribeWorkspaceImagesRequest& WithImageType(const ImageType& value) { SetImageType(value); return *this;} /** *

The type (owned or shared) of the image.

*/ inline DescribeWorkspaceImagesRequest& WithImageType(ImageType&& value) { SetImageType(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 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 DescribeWorkspaceImagesRequest& 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 DescribeWorkspaceImagesRequest& 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 DescribeWorkspaceImagesRequest& 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 DescribeWorkspaceImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_imageIds; bool m_imageIdsHasBeenSet = false; ImageType m_imageType; bool m_imageTypeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws