AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkspaceRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/IoTTwinMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IoTTwinMaker
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IOTTWINMAKER_API CreateWorkspaceRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspace"; }
32
33 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
41 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
42 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
43 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
44 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
45 inline CreateWorkspaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
46 inline CreateWorkspaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
47 inline CreateWorkspaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
49
51
54 inline const Aws::String& GetDescription() const{ return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
57 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
58 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
59 inline CreateWorkspaceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
60 inline CreateWorkspaceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
61 inline CreateWorkspaceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
63
65
69 inline const Aws::String& GetS3Location() const{ return m_s3Location; }
70 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
71 inline void SetS3Location(const Aws::String& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
72 inline void SetS3Location(Aws::String&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); }
73 inline void SetS3Location(const char* value) { m_s3LocationHasBeenSet = true; m_s3Location.assign(value); }
74 inline CreateWorkspaceRequest& WithS3Location(const Aws::String& value) { SetS3Location(value); return *this;}
75 inline CreateWorkspaceRequest& WithS3Location(Aws::String&& value) { SetS3Location(std::move(value)); return *this;}
76 inline CreateWorkspaceRequest& WithS3Location(const char* value) { SetS3Location(value); return *this;}
78
80
83 inline const Aws::String& GetRole() const{ return m_role; }
84 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
85 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
86 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
87 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
88 inline CreateWorkspaceRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
89 inline CreateWorkspaceRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
90 inline CreateWorkspaceRequest& WithRole(const char* value) { SetRole(value); return *this;}
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CreateWorkspaceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
102 inline CreateWorkspaceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateWorkspaceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline CreateWorkspaceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateWorkspaceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateWorkspaceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateWorkspaceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateWorkspaceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateWorkspaceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111 private:
112
113 Aws::String m_workspaceId;
114 bool m_workspaceIdHasBeenSet = false;
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
119 Aws::String m_s3Location;
120 bool m_s3LocationHasBeenSet = false;
121
122 Aws::String m_role;
123 bool m_roleHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace IoTTwinMaker
131} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorkspaceRequest & WithWorkspaceId(Aws::String &&value)
CreateWorkspaceRequest & AddTags(const char *key, Aws::String &&value)
CreateWorkspaceRequest & WithS3Location(const char *value)
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
CreateWorkspaceRequest & AddTags(Aws::String &&key, const char *value)
CreateWorkspaceRequest & WithDescription(const Aws::String &value)
CreateWorkspaceRequest & WithDescription(Aws::String &&value)
CreateWorkspaceRequest & WithRole(const Aws::String &value)
CreateWorkspaceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateWorkspaceRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkspaceRequest & WithRole(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkspaceRequest & WithS3Location(Aws::String &&value)
CreateWorkspaceRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateWorkspaceRequest & WithDescription(const char *value)
CreateWorkspaceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorkspaceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkspaceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateWorkspaceRequest & AddTags(const char *key, const char *value)
CreateWorkspaceRequest & WithRole(const char *value)
CreateWorkspaceRequest & WithS3Location(const Aws::String &value)
CreateWorkspaceRequest & WithWorkspaceId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkspaceRequest & WithWorkspaceId(const char *value)
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