AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRuleGroupsNamespaceRequest.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 <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 PutRuleGroupsNamespaceRequest();
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 "PutRuleGroupsNamespace"; }
37
38 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline PutRuleGroupsNamespaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline PutRuleGroupsNamespaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline PutRuleGroupsNamespaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
63 inline const Aws::Utils::ByteBuffer& GetData() const{ return m_data; }
64 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
65 inline void SetData(const Aws::Utils::ByteBuffer& value) { m_dataHasBeenSet = true; m_data = value; }
66 inline void SetData(Aws::Utils::ByteBuffer&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
67 inline PutRuleGroupsNamespaceRequest& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
68 inline PutRuleGroupsNamespaceRequest& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline PutRuleGroupsNamespaceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline PutRuleGroupsNamespaceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline PutRuleGroupsNamespaceRequest& WithName(const char* value) { SetName(value); return *this;}
84
86
89 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
90 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
91 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
92 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
93 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
94 inline PutRuleGroupsNamespaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
95 inline PutRuleGroupsNamespaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
96 inline PutRuleGroupsNamespaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
98 private:
99
100 Aws::String m_clientToken;
101 bool m_clientTokenHasBeenSet = false;
102
104 bool m_dataHasBeenSet = false;
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::String m_workspaceId;
110 bool m_workspaceIdHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace PrometheusService
115} // namespace Aws
PutRuleGroupsNamespaceRequest & WithWorkspaceId(const char *value)
PutRuleGroupsNamespaceRequest & WithData(Aws::Utils::ByteBuffer &&value)
PutRuleGroupsNamespaceRequest & WithName(Aws::String &&value)
PutRuleGroupsNamespaceRequest & WithClientToken(Aws::String &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
PutRuleGroupsNamespaceRequest & WithWorkspaceId(Aws::String &&value)
PutRuleGroupsNamespaceRequest & WithData(const Aws::Utils::ByteBuffer &value)
PutRuleGroupsNamespaceRequest & WithName(const char *value)
PutRuleGroupsNamespaceRequest & WithClientToken(const Aws::String &value)
PutRuleGroupsNamespaceRequest & WithName(const Aws::String &value)
PutRuleGroupsNamespaceRequest & WithWorkspaceId(const Aws::String &value)
PutRuleGroupsNamespaceRequest & WithClientToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String