AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkspaceBundleRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workspaces/model/ComputeType.h>
11#include <aws/workspaces/model/UserStorage.h>
12#include <aws/workspaces/model/RootStorage.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/workspaces/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace WorkSpaces
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_WORKSPACES_API CreateWorkspaceBundleRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspaceBundle"; }
36
37 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetBundleName() const{ return m_bundleName; }
47 inline bool BundleNameHasBeenSet() const { return m_bundleNameHasBeenSet; }
48 inline void SetBundleName(const Aws::String& value) { m_bundleNameHasBeenSet = true; m_bundleName = value; }
49 inline void SetBundleName(Aws::String&& value) { m_bundleNameHasBeenSet = true; m_bundleName = std::move(value); }
50 inline void SetBundleName(const char* value) { m_bundleNameHasBeenSet = true; m_bundleName.assign(value); }
51 inline CreateWorkspaceBundleRequest& WithBundleName(const Aws::String& value) { SetBundleName(value); return *this;}
52 inline CreateWorkspaceBundleRequest& WithBundleName(Aws::String&& value) { SetBundleName(std::move(value)); return *this;}
53 inline CreateWorkspaceBundleRequest& WithBundleName(const char* value) { SetBundleName(value); return *this;}
55
57
60 inline const Aws::String& GetBundleDescription() const{ return m_bundleDescription; }
61 inline bool BundleDescriptionHasBeenSet() const { return m_bundleDescriptionHasBeenSet; }
62 inline void SetBundleDescription(const Aws::String& value) { m_bundleDescriptionHasBeenSet = true; m_bundleDescription = value; }
63 inline void SetBundleDescription(Aws::String&& value) { m_bundleDescriptionHasBeenSet = true; m_bundleDescription = std::move(value); }
64 inline void SetBundleDescription(const char* value) { m_bundleDescriptionHasBeenSet = true; m_bundleDescription.assign(value); }
66 inline CreateWorkspaceBundleRequest& WithBundleDescription(Aws::String&& value) { SetBundleDescription(std::move(value)); return *this;}
67 inline CreateWorkspaceBundleRequest& WithBundleDescription(const char* value) { SetBundleDescription(value); return *this;}
69
71
74 inline const Aws::String& GetImageId() const{ return m_imageId; }
75 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
76 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
77 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
78 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
79 inline CreateWorkspaceBundleRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
80 inline CreateWorkspaceBundleRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
81 inline CreateWorkspaceBundleRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
83
85
86 inline const ComputeType& GetComputeType() const{ return m_computeType; }
87 inline bool ComputeTypeHasBeenSet() const { return m_computeTypeHasBeenSet; }
88 inline void SetComputeType(const ComputeType& value) { m_computeTypeHasBeenSet = true; m_computeType = value; }
89 inline void SetComputeType(ComputeType&& value) { m_computeTypeHasBeenSet = true; m_computeType = std::move(value); }
90 inline CreateWorkspaceBundleRequest& WithComputeType(const ComputeType& value) { SetComputeType(value); return *this;}
91 inline CreateWorkspaceBundleRequest& WithComputeType(ComputeType&& value) { SetComputeType(std::move(value)); return *this;}
93
95
96 inline const UserStorage& GetUserStorage() const{ return m_userStorage; }
97 inline bool UserStorageHasBeenSet() const { return m_userStorageHasBeenSet; }
98 inline void SetUserStorage(const UserStorage& value) { m_userStorageHasBeenSet = true; m_userStorage = value; }
99 inline void SetUserStorage(UserStorage&& value) { m_userStorageHasBeenSet = true; m_userStorage = std::move(value); }
100 inline CreateWorkspaceBundleRequest& WithUserStorage(const UserStorage& value) { SetUserStorage(value); return *this;}
101 inline CreateWorkspaceBundleRequest& WithUserStorage(UserStorage&& value) { SetUserStorage(std::move(value)); return *this;}
103
105
106 inline const RootStorage& GetRootStorage() const{ return m_rootStorage; }
107 inline bool RootStorageHasBeenSet() const { return m_rootStorageHasBeenSet; }
108 inline void SetRootStorage(const RootStorage& value) { m_rootStorageHasBeenSet = true; m_rootStorage = value; }
109 inline void SetRootStorage(RootStorage&& value) { m_rootStorageHasBeenSet = true; m_rootStorage = std::move(value); }
110 inline CreateWorkspaceBundleRequest& WithRootStorage(const RootStorage& value) { SetRootStorage(value); return *this;}
111 inline CreateWorkspaceBundleRequest& WithRootStorage(RootStorage&& value) { SetRootStorage(std::move(value)); return *this;}
113
115
121 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
124 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline CreateWorkspaceBundleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
126 inline CreateWorkspaceBundleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
127 inline CreateWorkspaceBundleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
128 inline CreateWorkspaceBundleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
130 private:
131
132 Aws::String m_bundleName;
133 bool m_bundleNameHasBeenSet = false;
134
135 Aws::String m_bundleDescription;
136 bool m_bundleDescriptionHasBeenSet = false;
137
138 Aws::String m_imageId;
139 bool m_imageIdHasBeenSet = false;
140
141 ComputeType m_computeType;
142 bool m_computeTypeHasBeenSet = false;
143
144 UserStorage m_userStorage;
145 bool m_userStorageHasBeenSet = false;
146
147 RootStorage m_rootStorage;
148 bool m_rootStorageHasBeenSet = false;
149
150 Aws::Vector<Tag> m_tags;
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace WorkSpaces
156} // namespace Aws
CreateWorkspaceBundleRequest & WithUserStorage(UserStorage &&value)
CreateWorkspaceBundleRequest & WithBundleName(const char *value)
CreateWorkspaceBundleRequest & WithUserStorage(const UserStorage &value)
CreateWorkspaceBundleRequest & WithRootStorage(RootStorage &&value)
CreateWorkspaceBundleRequest & WithComputeType(ComputeType &&value)
CreateWorkspaceBundleRequest & WithBundleName(const Aws::String &value)
CreateWorkspaceBundleRequest & WithBundleName(Aws::String &&value)
CreateWorkspaceBundleRequest & WithImageId(const Aws::String &value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkspaceBundleRequest & WithBundleDescription(const Aws::String &value)
CreateWorkspaceBundleRequest & AddTags(const Tag &value)
CreateWorkspaceBundleRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWorkspaceBundleRequest & WithImageId(Aws::String &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
CreateWorkspaceBundleRequest & WithImageId(const char *value)
CreateWorkspaceBundleRequest & WithBundleDescription(const char *value)
CreateWorkspaceBundleRequest & WithRootStorage(const RootStorage &value)
CreateWorkspaceBundleRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWorkspaceBundleRequest & WithComputeType(const ComputeType &value)
CreateWorkspaceBundleRequest & WithBundleDescription(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector