AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateWorkspaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMakerRequest.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace IoTTwinMaker {
16namespace Model {
17
21 public:
22 AWS_IOTTWINMAKER_API CreateWorkspaceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspace"; }
29
30 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
37 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
38 template <typename WorkspaceIdT = Aws::String>
39 void SetWorkspaceId(WorkspaceIdT&& value) {
40 m_workspaceIdHasBeenSet = true;
41 m_workspaceId = std::forward<WorkspaceIdT>(value);
42 }
43 template <typename WorkspaceIdT = Aws::String>
44 CreateWorkspaceRequest& WithWorkspaceId(WorkspaceIdT&& value) {
45 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
62 CreateWorkspaceRequest& WithDescription(DescriptionT&& value) {
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetS3Location() const { return m_s3Location; }
74 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
75 template <typename S3LocationT = Aws::String>
76 void SetS3Location(S3LocationT&& value) {
77 m_s3LocationHasBeenSet = true;
78 m_s3Location = std::forward<S3LocationT>(value);
79 }
80 template <typename S3LocationT = Aws::String>
81 CreateWorkspaceRequest& WithS3Location(S3LocationT&& value) {
82 SetS3Location(std::forward<S3LocationT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetRole() const { return m_role; }
92 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
93 template <typename RoleT = Aws::String>
94 void SetRole(RoleT&& value) {
95 m_roleHasBeenSet = true;
96 m_role = std::forward<RoleT>(value);
97 }
98 template <typename RoleT = Aws::String>
100 SetRole(std::forward<RoleT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 void SetTags(TagsT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags = std::forward<TagsT>(value);
115 }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 SetTags(std::forward<TagsT>(value));
119 return *this;
120 }
121 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
122 CreateWorkspaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_workspaceId;
130
131 Aws::String m_description;
132
133 Aws::String m_s3Location;
134
135 Aws::String m_role;
136
138 bool m_workspaceIdHasBeenSet = false;
139 bool m_descriptionHasBeenSet = false;
140 bool m_s3LocationHasBeenSet = false;
141 bool m_roleHasBeenSet = false;
142 bool m_tagsHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace IoTTwinMaker
147} // namespace Aws
CreateWorkspaceRequest & WithDescription(DescriptionT &&value)
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
CreateWorkspaceRequest & WithWorkspaceId(WorkspaceIdT &&value)
CreateWorkspaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWorkspaceRequest & WithS3Location(S3LocationT &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkspaceRequest & WithTags(TagsT &&value)
CreateWorkspaceRequest & WithRole(RoleT &&value)
AWS_IOTTWINMAKER_API CreateWorkspaceRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String