AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAlertManagerDefinitionRequest.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 PutAlertManagerDefinitionRequest();
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 "PutAlertManagerDefinition"; }
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 PutAlertManagerDefinitionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline PutAlertManagerDefinitionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline PutAlertManagerDefinitionRequest& 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 PutAlertManagerDefinitionRequest& WithData(const Aws::Utils::ByteBuffer& value) { SetData(value); return *this;}
68 inline PutAlertManagerDefinitionRequest& WithData(Aws::Utils::ByteBuffer&& value) { SetData(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
76 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
77 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
78 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
79 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
80 inline PutAlertManagerDefinitionRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
81 inline PutAlertManagerDefinitionRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
82 inline PutAlertManagerDefinitionRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
84 private:
85
86 Aws::String m_clientToken;
87 bool m_clientTokenHasBeenSet = false;
88
90 bool m_dataHasBeenSet = false;
91
92 Aws::String m_workspaceId;
93 bool m_workspaceIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace PrometheusService
98} // namespace Aws
PutAlertManagerDefinitionRequest & WithWorkspaceId(const Aws::String &value)
PutAlertManagerDefinitionRequest & WithClientToken(const char *value)
PutAlertManagerDefinitionRequest & WithClientToken(const Aws::String &value)
PutAlertManagerDefinitionRequest & WithWorkspaceId(const char *value)
PutAlertManagerDefinitionRequest & WithWorkspaceId(Aws::String &&value)
PutAlertManagerDefinitionRequest & WithData(const Aws::Utils::ByteBuffer &value)
PutAlertManagerDefinitionRequest & WithData(Aws::Utils::ByteBuffer &&value)
PutAlertManagerDefinitionRequest & WithClientToken(Aws::String &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String