AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateWorkspaceRequest.h
1
6#pragma once
7#include <aws/amp/PrometheusServiceRequest.h>
8#include <aws/amp/PrometheusService_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PrometheusService {
17namespace Model {
18
26 public:
27 AWS_PROMETHEUSSERVICE_API CreateWorkspaceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspace"; }
34
35 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetAlias() const { return m_alias; }
44 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
45 template <typename AliasT = Aws::String>
46 void SetAlias(AliasT&& value) {
47 m_aliasHasBeenSet = true;
48 m_alias = std::forward<AliasT>(value);
49 }
50 template <typename AliasT = Aws::String>
52 SetAlias(std::forward<AliasT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template <typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) {
66 m_clientTokenHasBeenSet = true;
67 m_clientToken = std::forward<ClientTokenT>(value);
68 }
69 template <typename ClientTokenT = Aws::String>
70 CreateWorkspaceRequest& WithClientToken(ClientTokenT&& value) {
71 SetClientToken(std::forward<ClientTokenT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 void SetTags(TagsT&& value) {
84 m_tagsHasBeenSet = true;
85 m_tags = std::forward<TagsT>(value);
86 }
87 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 SetTags(std::forward<TagsT>(value));
90 return *this;
91 }
92 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
93 CreateWorkspaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
96 return *this;
97 }
99
101
108 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
109 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
110 template <typename KmsKeyArnT = Aws::String>
111 void SetKmsKeyArn(KmsKeyArnT&& value) {
112 m_kmsKeyArnHasBeenSet = true;
113 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
114 }
115 template <typename KmsKeyArnT = Aws::String>
117 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_alias;
123 bool m_aliasHasBeenSet = false;
124
126 bool m_clientTokenHasBeenSet = true;
127
129 bool m_tagsHasBeenSet = false;
130
131 Aws::String m_kmsKeyArn;
132 bool m_kmsKeyArnHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace PrometheusService
137} // namespace Aws
CreateWorkspaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
CreateWorkspaceRequest & WithAlias(AliasT &&value)
CreateWorkspaceRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_PROMETHEUSSERVICE_API CreateWorkspaceRequest()=default
CreateWorkspaceRequest & WithKmsKeyArn(KmsKeyArnT &&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