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

Information about the WorkSpaces that could not be created.

*/ inline const Aws::Vector& GetFailedRequests() const{ return m_failedRequests; } /** *

Information about the WorkSpaces that could not be created.

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

Information about the WorkSpaces that could not be created.

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

Information about the WorkSpaces that could not be created.

*/ inline CreateWorkspacesResult& WithFailedRequests(const Aws::Vector& value) { SetFailedRequests(value); return *this;} /** *

Information about the WorkSpaces that could not be created.

*/ inline CreateWorkspacesResult& WithFailedRequests(Aws::Vector&& value) { SetFailedRequests(std::move(value)); return *this;} /** *

Information about the WorkSpaces that could not be created.

*/ inline CreateWorkspacesResult& AddFailedRequests(const FailedCreateWorkspaceRequest& value) { m_failedRequests.push_back(value); return *this; } /** *

Information about the WorkSpaces that could not be created.

*/ inline CreateWorkspacesResult& AddFailedRequests(FailedCreateWorkspaceRequest&& value) { m_failedRequests.push_back(std::move(value)); return *this; } /** *

Information about the WorkSpaces that were created.

Because this * operation is asynchronous, the identifier returned is not immediately available * for use with other operations. For example, if you call * DescribeWorkspaces before the WorkSpace is created, the information * returned can be incomplete.

*/ inline const Aws::Vector& GetPendingRequests() const{ return m_pendingRequests; } /** *

Information about the WorkSpaces that were created.

Because this * operation is asynchronous, the identifier returned is not immediately available * for use with other operations. For example, if you call * DescribeWorkspaces before the WorkSpace is created, the information * returned can be incomplete.

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

Information about the WorkSpaces that were created.

Because this * operation is asynchronous, the identifier returned is not immediately available * for use with other operations. For example, if you call * DescribeWorkspaces before the WorkSpace is created, the information * returned can be incomplete.

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

Information about the WorkSpaces that were created.

Because this * operation is asynchronous, the identifier returned is not immediately available * for use with other operations. For example, if you call * DescribeWorkspaces before the WorkSpace is created, the information * returned can be incomplete.

*/ inline CreateWorkspacesResult& WithPendingRequests(const Aws::Vector& value) { SetPendingRequests(value); return *this;} /** *

Information about the WorkSpaces that were created.

Because this * operation is asynchronous, the identifier returned is not immediately available * for use with other operations. For example, if you call * DescribeWorkspaces before the WorkSpace is created, the information * returned can be incomplete.

*/ inline CreateWorkspacesResult& WithPendingRequests(Aws::Vector&& value) { SetPendingRequests(std::move(value)); return *this;} /** *

Information about the WorkSpaces that were created.

Because this * operation is asynchronous, the identifier returned is not immediately available * for use with other operations. For example, if you call * DescribeWorkspaces before the WorkSpace is created, the information * returned can be incomplete.

*/ inline CreateWorkspacesResult& AddPendingRequests(const Workspace& value) { m_pendingRequests.push_back(value); return *this; } /** *

Information about the WorkSpaces that were created.

Because this * operation is asynchronous, the identifier returned is not immediately available * for use with other operations. For example, if you call * DescribeWorkspaces before the WorkSpace is created, the information * returned can be incomplete.

*/ inline CreateWorkspacesResult& AddPendingRequests(Workspace&& value) { m_pendingRequests.push_back(std::move(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 CreateWorkspacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateWorkspacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateWorkspacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_failedRequests; Aws::Vector m_pendingRequests; Aws::String m_requestId; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws