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/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/PrometheusServiceRequest.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 PrometheusService
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_PROMETHEUSSERVICE_API CreateWorkspaceRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspace"; }
37
38 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetAlias() const{ return m_alias; }
48 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
49 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
50 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
51 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
52 inline CreateWorkspaceRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
53 inline CreateWorkspaceRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
54 inline CreateWorkspaceRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
56
58
62 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
66 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
67 inline CreateWorkspaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
68 inline CreateWorkspaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
69 inline CreateWorkspaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
71
73
80 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
81 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
82 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
83 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
84 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
85 inline CreateWorkspaceRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
86 inline CreateWorkspaceRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
87 inline CreateWorkspaceRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
97 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
98 inline CreateWorkspaceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
99 inline CreateWorkspaceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
100 inline CreateWorkspaceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
101 inline CreateWorkspaceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
102 inline CreateWorkspaceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
103 inline CreateWorkspaceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
104 inline CreateWorkspaceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
105 inline CreateWorkspaceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
106 inline CreateWorkspaceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
108 private:
109
110 Aws::String m_alias;
111 bool m_aliasHasBeenSet = false;
112
113 Aws::String m_clientToken;
114 bool m_clientTokenHasBeenSet = false;
115
116 Aws::String m_kmsKeyArn;
117 bool m_kmsKeyArnHasBeenSet = false;
118
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace PrometheusService
125} // namespace Aws
CreateWorkspaceRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateWorkspaceRequest & WithKmsKeyArn(const char *value)
CreateWorkspaceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkspaceRequest & AddTags(Aws::String &&key, const char *value)
CreateWorkspaceRequest & WithAlias(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkspaceRequest & WithClientToken(Aws::String &&value)
CreateWorkspaceRequest & AddTags(const char *key, const char *value)
CreateWorkspaceRequest & WithKmsKeyArn(Aws::String &&value)
CreateWorkspaceRequest & AddTags(const char *key, Aws::String &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
CreateWorkspaceRequest & WithAlias(Aws::String &&value)
CreateWorkspaceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorkspaceRequest & WithClientToken(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorkspaceRequest & WithKmsKeyArn(const Aws::String &value)
CreateWorkspaceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateWorkspaceRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateWorkspaceRequest & AddTags(Aws::String &&key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkspaceRequest & WithClientToken(const Aws::String &value)
CreateWorkspaceRequest & WithAlias(const Aws::String &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