AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
CreateQueryLoggingConfigurationRequest.h
1
6#pragma once
7#include <aws/amp/PrometheusServiceRequest.h>
8#include <aws/amp/PrometheusService_EXPORTS.h>
9#include <aws/amp/model/LoggingDestination.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PrometheusService {
18namespace Model {
19
23 public:
24 AWS_PROMETHEUSSERVICE_API CreateQueryLoggingConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateQueryLoggingConfiguration"; }
31
32 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
40 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
41 template <typename WorkspaceIdT = Aws::String>
42 void SetWorkspaceId(WorkspaceIdT&& value) {
43 m_workspaceIdHasBeenSet = true;
44 m_workspaceId = std::forward<WorkspaceIdT>(value);
45 }
46 template <typename WorkspaceIdT = Aws::String>
48 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Vector<LoggingDestination>& GetDestinations() const { return m_destinations; }
59 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
60 template <typename DestinationsT = Aws::Vector<LoggingDestination>>
61 void SetDestinations(DestinationsT&& value) {
62 m_destinationsHasBeenSet = true;
63 m_destinations = std::forward<DestinationsT>(value);
64 }
65 template <typename DestinationsT = Aws::Vector<LoggingDestination>>
67 SetDestinations(std::forward<DestinationsT>(value));
68 return *this;
69 }
70 template <typename DestinationsT = LoggingDestination>
72 m_destinationsHasBeenSet = true;
73 m_destinations.emplace_back(std::forward<DestinationsT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetClientToken() const { return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 template <typename ClientTokenT = Aws::String>
86 void SetClientToken(ClientTokenT&& value) {
87 m_clientTokenHasBeenSet = true;
88 m_clientToken = std::forward<ClientTokenT>(value);
89 }
90 template <typename ClientTokenT = Aws::String>
92 SetClientToken(std::forward<ClientTokenT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_workspaceId;
98 bool m_workspaceIdHasBeenSet = false;
99
100 Aws::Vector<LoggingDestination> m_destinations;
101 bool m_destinationsHasBeenSet = false;
102
104 bool m_clientTokenHasBeenSet = true;
105};
106
107} // namespace Model
108} // namespace PrometheusService
109} // namespace Aws
CreateQueryLoggingConfigurationRequest & WithClientToken(ClientTokenT &&value)
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
CreateQueryLoggingConfigurationRequest & AddDestinations(DestinationsT &&value)
AWS_PROMETHEUSSERVICE_API CreateQueryLoggingConfigurationRequest()=default
CreateQueryLoggingConfigurationRequest & WithDestinations(DestinationsT &&value)
CreateQueryLoggingConfigurationRequest & WithWorkspaceId(WorkspaceIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector