AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename WorkspaceIdT = Aws::String>
43 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
44 template<typename WorkspaceIdT = Aws::String>
45 CreateWorkspaceRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 CreateWorkspaceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
65 inline const Aws::String& GetS3Location() const { return m_s3Location; }
66 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
67 template<typename S3LocationT = Aws::String>
68 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
69 template<typename S3LocationT = Aws::String>
70 CreateWorkspaceRequest& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
72
74
77 inline const Aws::String& GetRole() const { return m_role; }
78 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
79 template<typename RoleT = Aws::String>
80 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
81 template<typename RoleT = Aws::String>
82 CreateWorkspaceRequest& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
92 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 CreateWorkspaceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
95 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
96 CreateWorkspaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
97 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
98 }
100 private:
101
102 Aws::String m_workspaceId;
103 bool m_workspaceIdHasBeenSet = false;
104
105 Aws::String m_description;
106 bool m_descriptionHasBeenSet = false;
107
108 Aws::String m_s3Location;
109 bool m_s3LocationHasBeenSet = false;
110
111 Aws::String m_role;
112 bool m_roleHasBeenSet = false;
113
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace IoTTwinMaker
120} // 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