/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WorkSpaces { namespace Model { class DescribeWorkspaceImagePermissionsResult { public: AWS_WORKSPACES_API DescribeWorkspaceImagePermissionsResult(); AWS_WORKSPACES_API DescribeWorkspaceImagePermissionsResult(const Aws::AmazonWebServiceResult& result); AWS_WORKSPACES_API DescribeWorkspaceImagePermissionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the image.

*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *

The identifier of the image.

*/ inline void SetImageId(const Aws::String& value) { m_imageId = value; } /** *

The identifier of the image.

*/ inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); } /** *

The identifier of the image.

*/ inline void SetImageId(const char* value) { m_imageId.assign(value); } /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagePermissionsResult& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagePermissionsResult& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *

The identifier of the image.

*/ inline DescribeWorkspaceImagePermissionsResult& WithImageId(const char* value) { SetImageId(value); return *this;} /** *

The identifiers of the Amazon Web Services accounts that the image has been * shared with.

*/ inline const Aws::Vector& GetImagePermissions() const{ return m_imagePermissions; } /** *

The identifiers of the Amazon Web Services accounts that the image has been * shared with.

*/ inline void SetImagePermissions(const Aws::Vector& value) { m_imagePermissions = value; } /** *

The identifiers of the Amazon Web Services accounts that the image has been * shared with.

*/ inline void SetImagePermissions(Aws::Vector&& value) { m_imagePermissions = std::move(value); } /** *

The identifiers of the Amazon Web Services accounts that the image has been * shared with.

*/ inline DescribeWorkspaceImagePermissionsResult& WithImagePermissions(const Aws::Vector& value) { SetImagePermissions(value); return *this;} /** *

The identifiers of the Amazon Web Services accounts that the image has been * shared with.

*/ inline DescribeWorkspaceImagePermissionsResult& WithImagePermissions(Aws::Vector&& value) { SetImagePermissions(std::move(value)); return *this;} /** *

The identifiers of the Amazon Web Services accounts that the image has been * shared with.

*/ inline DescribeWorkspaceImagePermissionsResult& AddImagePermissions(const ImagePermission& value) { m_imagePermissions.push_back(value); return *this; } /** *

The identifiers of the Amazon Web Services accounts that the image has been * shared with.

*/ inline DescribeWorkspaceImagePermissionsResult& AddImagePermissions(ImagePermission&& value) { m_imagePermissions.push_back(std::move(value)); return *this; } /** *

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

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

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

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

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

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

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

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

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

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

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

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

The token to use to retrieve the next page of results. This value is null * when there are no more results to return.

*/ inline DescribeWorkspaceImagePermissionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeWorkspaceImagePermissionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeWorkspaceImagePermissionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeWorkspaceImagePermissionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_imageId; Aws::Vector m_imagePermissions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws