AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateLoggingConfigurationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreateLoggingConfigurationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreateLoggingConfigurationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
60 inline const Aws::String& GetLogGroupArn() const{ return m_logGroupArn; }
61 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
62 inline void SetLogGroupArn(const Aws::String& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = value; }
63 inline void SetLogGroupArn(Aws::String&& value) { m_logGroupArnHasBeenSet = true; m_logGroupArn = std::move(value); }
64 inline void SetLogGroupArn(const char* value) { m_logGroupArnHasBeenSet = true; m_logGroupArn.assign(value); }
65 inline CreateLoggingConfigurationRequest& WithLogGroupArn(const Aws::String& value) { SetLogGroupArn(value); return *this;}
66 inline CreateLoggingConfigurationRequest& WithLogGroupArn(Aws::String&& value) { SetLogGroupArn(std::move(value)); return *this;}
67 inline CreateLoggingConfigurationRequest& WithLogGroupArn(const char* value) { SetLogGroupArn(value); return *this;}
69
71
74 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
75 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
76 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
77 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
78 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
79 inline CreateLoggingConfigurationRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
80 inline CreateLoggingConfigurationRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
81 inline CreateLoggingConfigurationRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
83 private:
84
85 Aws::String m_clientToken;
86 bool m_clientTokenHasBeenSet = false;
87
88 Aws::String m_logGroupArn;
89 bool m_logGroupArnHasBeenSet = false;
90
91 Aws::String m_workspaceId;
92 bool m_workspaceIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace PrometheusService
97} // namespace Aws
CreateLoggingConfigurationRequest & WithWorkspaceId(const char *value)
CreateLoggingConfigurationRequest & WithLogGroupArn(const char *value)
CreateLoggingConfigurationRequest & WithWorkspaceId(const Aws::String &value)
CreateLoggingConfigurationRequest & WithLogGroupArn(const Aws::String &value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
CreateLoggingConfigurationRequest & WithClientToken(Aws::String &&value)
CreateLoggingConfigurationRequest & WithLogGroupArn(Aws::String &&value)
CreateLoggingConfigurationRequest & WithClientToken(const Aws::String &value)
CreateLoggingConfigurationRequest & WithClientToken(const char *value)
CreateLoggingConfigurationRequest & WithWorkspaceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String