AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
CreateLoggingConfigurationRequest.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/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PrometheusService {
16namespace Model {
17
25 public:
26 AWS_PROMETHEUSSERVICE_API CreateLoggingConfigurationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLoggingConfiguration"; }
33
34 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
41 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
42 template <typename WorkspaceIdT = Aws::String>
43 void SetWorkspaceId(WorkspaceIdT&& value) {
44 m_workspaceIdHasBeenSet = true;
45 m_workspaceId = std::forward<WorkspaceIdT>(value);
46 }
47 template <typename WorkspaceIdT = Aws::String>
49 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
60 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
61 template <typename LogGroupArnT = Aws::String>
62 void SetLogGroupArn(LogGroupArnT&& value) {
63 m_logGroupArnHasBeenSet = true;
64 m_logGroupArn = std::forward<LogGroupArnT>(value);
65 }
66 template <typename LogGroupArnT = Aws::String>
68 SetLogGroupArn(std::forward<LogGroupArnT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template <typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) {
82 m_clientTokenHasBeenSet = true;
83 m_clientToken = std::forward<ClientTokenT>(value);
84 }
85 template <typename ClientTokenT = Aws::String>
87 SetClientToken(std::forward<ClientTokenT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_workspaceId;
93 bool m_workspaceIdHasBeenSet = false;
94
95 Aws::String m_logGroupArn;
96 bool m_logGroupArnHasBeenSet = false;
97
99 bool m_clientTokenHasBeenSet = true;
100};
101
102} // namespace Model
103} // namespace PrometheusService
104} // namespace Aws
CreateLoggingConfigurationRequest & WithLogGroupArn(LogGroupArnT &&value)
CreateLoggingConfigurationRequest & WithClientToken(ClientTokenT &&value)
AWS_PROMETHEUSSERVICE_API CreateLoggingConfigurationRequest()=default
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
CreateLoggingConfigurationRequest & WithWorkspaceId(WorkspaceIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String