AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLoggingConfigurationRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace PrometheusService
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_PROMETHEUSSERVICE_API CreateLoggingConfigurationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateLoggingConfiguration"; }
36
37 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 CreateLoggingConfigurationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
58 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
59 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
60 template<typename LogGroupArnT = Aws::String>
61 void SetLogGroupArn(LogGroupArnT&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::forward<LogGroupArnT>(value); }
62 template<typename LogGroupArnT = Aws::String>
63 CreateLoggingConfigurationRequest& WithLogGroupArn(LogGroupArnT&& value) { SetLogGroupArn(std::forward<LogGroupArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
71 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
72 template<typename WorkspaceIdT = Aws::String>
73 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
74 template<typename WorkspaceIdT = Aws::String>
75 CreateLoggingConfigurationRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
77 private:
78
80 bool m_clientTokenHasBeenSet = true;
81
82 Aws::String m_logGroupArn;
83 bool m_logGroupArnHasBeenSet = false;
84
85 Aws::String m_workspaceId;
86 bool m_workspaceIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace PrometheusService
91} // 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