AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateWorkspaceImageResult.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/OperatingSystem.h>
10#include <aws/workspaces/model/WorkspaceImageState.h>
11#include <aws/workspaces/model/WorkspaceImageRequiredTenancy.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace WorkSpaces
28{
29namespace Model
30{
32 {
33 public:
34 AWS_WORKSPACES_API CreateWorkspaceImageResult() = default;
37
38
40
43 inline const Aws::String& GetImageId() const { return m_imageId; }
44 template<typename ImageIdT = Aws::String>
45 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
46 template<typename ImageIdT = Aws::String>
47 CreateWorkspaceImageResult& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 CreateWorkspaceImageResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 CreateWorkspaceImageResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
76 inline const OperatingSystem& GetOperatingSystem() const { return m_operatingSystem; }
77 template<typename OperatingSystemT = OperatingSystem>
78 void SetOperatingSystem(OperatingSystemT&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::forward<OperatingSystemT>(value); }
79 template<typename OperatingSystemT = OperatingSystem>
80 CreateWorkspaceImageResult& WithOperatingSystem(OperatingSystemT&& value) { SetOperatingSystem(std::forward<OperatingSystemT>(value)); return *this;}
82
84
87 inline WorkspaceImageState GetState() const { return m_state; }
88 inline void SetState(WorkspaceImageState value) { m_stateHasBeenSet = true; m_state = value; }
89 inline CreateWorkspaceImageResult& WithState(WorkspaceImageState value) { SetState(value); return *this;}
91
93
100 inline WorkspaceImageRequiredTenancy GetRequiredTenancy() const { return m_requiredTenancy; }
101 inline void SetRequiredTenancy(WorkspaceImageRequiredTenancy value) { m_requiredTenancyHasBeenSet = true; m_requiredTenancy = value; }
104
106
109 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
110 template<typename CreatedT = Aws::Utils::DateTime>
111 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
112 template<typename CreatedT = Aws::Utils::DateTime>
113 CreateWorkspaceImageResult& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
115
117
120 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
121 template<typename OwnerAccountIdT = Aws::String>
122 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
123 template<typename OwnerAccountIdT = Aws::String>
124 CreateWorkspaceImageResult& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template<typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
132 template<typename RequestIdT = Aws::String>
133 CreateWorkspaceImageResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
135 private:
136
137 Aws::String m_imageId;
138 bool m_imageIdHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 OperatingSystem m_operatingSystem;
147 bool m_operatingSystemHasBeenSet = false;
148
150 bool m_stateHasBeenSet = false;
151
153 bool m_requiredTenancyHasBeenSet = false;
154
155 Aws::Utils::DateTime m_created{};
156 bool m_createdHasBeenSet = false;
157
158 Aws::String m_ownerAccountId;
159 bool m_ownerAccountIdHasBeenSet = false;
160
161 Aws::String m_requestId;
162 bool m_requestIdHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace WorkSpaces
167} // namespace Aws
CreateWorkspaceImageResult & WithRequestId(RequestIdT &&value)
CreateWorkspaceImageResult & WithRequiredTenancy(WorkspaceImageRequiredTenancy value)
CreateWorkspaceImageResult & WithState(WorkspaceImageState value)
AWS_WORKSPACES_API CreateWorkspaceImageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWorkspaceImageResult & WithDescription(DescriptionT &&value)
AWS_WORKSPACES_API CreateWorkspaceImageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_WORKSPACES_API CreateWorkspaceImageResult()=default
CreateWorkspaceImageResult & WithCreated(CreatedT &&value)
CreateWorkspaceImageResult & WithOperatingSystem(OperatingSystemT &&value)
CreateWorkspaceImageResult & WithImageId(ImageIdT &&value)
void SetRequiredTenancy(WorkspaceImageRequiredTenancy value)
CreateWorkspaceImageResult & WithName(NameT &&value)
CreateWorkspaceImageResult & WithOwnerAccountId(OwnerAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue