AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRuleGroupsNamespaceRequest.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/Array.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace PrometheusService
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_PROMETHEUSSERVICE_API CreateRuleGroupsNamespaceRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateRuleGroupsNamespace"; }
38
39 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
50 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
51 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
52 inline CreateRuleGroupsNamespaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
53 inline CreateRuleGroupsNamespaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
54 inline CreateRuleGroupsNamespaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
56
58
64 inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
65 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
66 inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
67 inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
68 inline CreateRuleGroupsNamespaceRequest& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
69 inline CreateRuleGroupsNamespaceRequest& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline CreateRuleGroupsNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline CreateRuleGroupsNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline CreateRuleGroupsNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
85
87
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateRuleGroupsNamespaceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateRuleGroupsNamespaceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
98 inline CreateRuleGroupsNamespaceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
99 inline CreateRuleGroupsNamespaceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
100 inline CreateRuleGroupsNamespaceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
101 inline CreateRuleGroupsNamespaceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
102 inline CreateRuleGroupsNamespaceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
103 inline CreateRuleGroupsNamespaceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
105
107
110 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
111 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
112 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
113 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
114 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
115 inline CreateRuleGroupsNamespaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
116 inline CreateRuleGroupsNamespaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
117 inline CreateRuleGroupsNamespaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
119 private:
120
121 Aws::String m_clientToken;
122 bool m_clientTokenHasBeenSet = false;
123
125 bool m_dataHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
131 bool m_tagsHasBeenSet = false;
132
133 Aws::String m_workspaceId;
134 bool m_workspaceIdHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace PrometheusService
139} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRuleGroupsNamespaceRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRuleGroupsNamespaceRequest & WithClientToken(const Aws::String &value)
CreateRuleGroupsNamespaceRequest & WithWorkspaceId(const Aws::String &value)
CreateRuleGroupsNamespaceRequest & WithWorkspaceId(const char *value)
CreateRuleGroupsNamespaceRequest & AddTags(Aws::String &&key, const char *value)
CreateRuleGroupsNamespaceRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRuleGroupsNamespaceRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRuleGroupsNamespaceRequest & WithName(Aws::String &&value)
CreateRuleGroupsNamespaceRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateRuleGroupsNamespaceRequest & AddTags(const char *key, Aws::String &&value)
CreateRuleGroupsNamespaceRequest & WithData(const Aws::Utils::ByteBuffer &value)
CreateRuleGroupsNamespaceRequest & AddTags(const char *key, const char *value)
CreateRuleGroupsNamespaceRequest & WithName(const Aws::String &value)
CreateRuleGroupsNamespaceRequest & WithClientToken(const char *value)
CreateRuleGroupsNamespaceRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRuleGroupsNamespaceRequest & WithClientToken(Aws::String &&value)
CreateRuleGroupsNamespaceRequest & AddTags(Aws::String &&key, Aws::String &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
CreateRuleGroupsNamespaceRequest & WithData(Aws::Utils::ByteBuffer &&value)
CreateRuleGroupsNamespaceRequest & WithWorkspaceId(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