AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreateDashboardRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace IoTSiteWise
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTSITEWISE_API CreateDashboardRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDashboard"; }
33
34 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetProjectId() const { return m_projectId; }
42 inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
43 template<typename ProjectIdT = Aws::String>
44 void SetProjectId(ProjectIdT&& value) { m_projectIdHasBeenSet = true; m_projectId = std::forward<ProjectIdT>(value); }
45 template<typename ProjectIdT = Aws::String>
46 CreateDashboardRequest& WithProjectId(ProjectIdT&& value) { SetProjectId(std::forward<ProjectIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDashboardName() const { return m_dashboardName; }
54 inline bool DashboardNameHasBeenSet() const { return m_dashboardNameHasBeenSet; }
55 template<typename DashboardNameT = Aws::String>
56 void SetDashboardName(DashboardNameT&& value) { m_dashboardNameHasBeenSet = true; m_dashboardName = std::forward<DashboardNameT>(value); }
57 template<typename DashboardNameT = Aws::String>
58 CreateDashboardRequest& WithDashboardName(DashboardNameT&& value) { SetDashboardName(std::forward<DashboardNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDashboardDescription() const { return m_dashboardDescription; }
66 inline bool DashboardDescriptionHasBeenSet() const { return m_dashboardDescriptionHasBeenSet; }
67 template<typename DashboardDescriptionT = Aws::String>
68 void SetDashboardDescription(DashboardDescriptionT&& value) { m_dashboardDescriptionHasBeenSet = true; m_dashboardDescription = std::forward<DashboardDescriptionT>(value); }
69 template<typename DashboardDescriptionT = Aws::String>
70 CreateDashboardRequest& WithDashboardDescription(DashboardDescriptionT&& value) { SetDashboardDescription(std::forward<DashboardDescriptionT>(value)); return *this;}
72
74
83 inline const Aws::String& GetDashboardDefinition() const { return m_dashboardDefinition; }
84 inline bool DashboardDefinitionHasBeenSet() const { return m_dashboardDefinitionHasBeenSet; }
85 template<typename DashboardDefinitionT = Aws::String>
86 void SetDashboardDefinition(DashboardDefinitionT&& value) { m_dashboardDefinitionHasBeenSet = true; m_dashboardDefinition = std::forward<DashboardDefinitionT>(value); }
87 template<typename DashboardDefinitionT = Aws::String>
88 CreateDashboardRequest& WithDashboardDefinition(DashboardDefinitionT&& value) { SetDashboardDefinition(std::forward<DashboardDefinitionT>(value)); return *this;}
90
92
97 inline const Aws::String& GetClientToken() const { return m_clientToken; }
98 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
99 template<typename ClientTokenT = Aws::String>
100 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
101 template<typename ClientTokenT = Aws::String>
102 CreateDashboardRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
104
106
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
116 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 CreateDashboardRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
118 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
119 CreateDashboardRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
120 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
121 }
123 private:
124
125 Aws::String m_projectId;
126 bool m_projectIdHasBeenSet = false;
127
128 Aws::String m_dashboardName;
129 bool m_dashboardNameHasBeenSet = false;
130
131 Aws::String m_dashboardDescription;
132 bool m_dashboardDescriptionHasBeenSet = false;
133
134 Aws::String m_dashboardDefinition;
135 bool m_dashboardDefinitionHasBeenSet = false;
136
138 bool m_clientTokenHasBeenSet = true;
139
141 bool m_tagsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace IoTSiteWise
146} // namespace Aws
CreateDashboardRequest & WithDashboardDescription(DashboardDescriptionT &&value)
CreateDashboardRequest & WithClientToken(ClientTokenT &&value)
CreateDashboardRequest & WithTags(TagsT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
CreateDashboardRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDashboardRequest & WithDashboardName(DashboardNameT &&value)
CreateDashboardRequest & WithDashboardDefinition(DashboardDefinitionT &&value)
void SetDashboardDescription(DashboardDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDashboardRequest & WithProjectId(ProjectIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOTSITEWISE_API CreateDashboardRequest()=default
void SetDashboardDefinition(DashboardDefinitionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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