AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkspacesResult.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workspaces/model/FailedCreateWorkspaceRequest.h>
11#include <aws/workspaces/model/Workspace.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace WorkSpaces
27{
28namespace Model
29{
31 {
32 public:
33 AWS_WORKSPACES_API CreateWorkspacesResult();
36
37
39
42 inline const Aws::Vector<FailedCreateWorkspaceRequest>& GetFailedRequests() const{ return m_failedRequests; }
43 inline void SetFailedRequests(const Aws::Vector<FailedCreateWorkspaceRequest>& value) { m_failedRequests = value; }
44 inline void SetFailedRequests(Aws::Vector<FailedCreateWorkspaceRequest>&& value) { m_failedRequests = std::move(value); }
47 inline CreateWorkspacesResult& AddFailedRequests(const FailedCreateWorkspaceRequest& value) { m_failedRequests.push_back(value); return *this; }
48 inline CreateWorkspacesResult& AddFailedRequests(FailedCreateWorkspaceRequest&& value) { m_failedRequests.push_back(std::move(value)); return *this; }
50
52
59 inline const Aws::Vector<Workspace>& GetPendingRequests() const{ return m_pendingRequests; }
60 inline void SetPendingRequests(const Aws::Vector<Workspace>& value) { m_pendingRequests = value; }
61 inline void SetPendingRequests(Aws::Vector<Workspace>&& value) { m_pendingRequests = std::move(value); }
63 inline CreateWorkspacesResult& WithPendingRequests(Aws::Vector<Workspace>&& value) { SetPendingRequests(std::move(value)); return *this;}
64 inline CreateWorkspacesResult& AddPendingRequests(const Workspace& value) { m_pendingRequests.push_back(value); return *this; }
65 inline CreateWorkspacesResult& AddPendingRequests(Workspace&& value) { m_pendingRequests.push_back(std::move(value)); return *this; }
67
69
70 inline const Aws::String& GetRequestId() const{ return m_requestId; }
71 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
72 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
73 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
74 inline CreateWorkspacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
75 inline CreateWorkspacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
76 inline CreateWorkspacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
78 private:
79
81
82 Aws::Vector<Workspace> m_pendingRequests;
83
84 Aws::String m_requestId;
85 };
86
87} // namespace Model
88} // namespace WorkSpaces
89} // namespace Aws
CreateWorkspacesResult & WithFailedRequests(const Aws::Vector< FailedCreateWorkspaceRequest > &value)
void SetFailedRequests(Aws::Vector< FailedCreateWorkspaceRequest > &&value)
CreateWorkspacesResult & WithFailedRequests(Aws::Vector< FailedCreateWorkspaceRequest > &&value)
void SetPendingRequests(const Aws::Vector< Workspace > &value)
void SetFailedRequests(const Aws::Vector< FailedCreateWorkspaceRequest > &value)
AWS_WORKSPACES_API CreateWorkspacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWorkspacesResult & WithPendingRequests(Aws::Vector< Workspace > &&value)
CreateWorkspacesResult & WithRequestId(const char *value)
AWS_WORKSPACES_API CreateWorkspacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< FailedCreateWorkspaceRequest > & GetFailedRequests() const
CreateWorkspacesResult & AddFailedRequests(FailedCreateWorkspaceRequest &&value)
CreateWorkspacesResult & WithPendingRequests(const Aws::Vector< Workspace > &value)
CreateWorkspacesResult & WithRequestId(const Aws::String &value)
const Aws::Vector< Workspace > & GetPendingRequests() const
CreateWorkspacesResult & AddFailedRequests(const FailedCreateWorkspaceRequest &value)
CreateWorkspacesResult & AddPendingRequests(Workspace &&value)
void SetPendingRequests(Aws::Vector< Workspace > &&value)
CreateWorkspacesResult & WithRequestId(Aws::String &&value)
CreateWorkspacesResult & AddPendingRequests(const Workspace &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue