AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateQueryLoggingConfigurationRequest.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/memory/stl/AWSVector.h>
11#include <aws/amp/model/LoggingDestination.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace PrometheusService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PROMETHEUSSERVICE_API CreateQueryLoggingConfigurationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateQueryLoggingConfiguration"; }
34
35 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template<typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
47 template<typename ClientTokenT = Aws::String>
48 CreateQueryLoggingConfigurationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
50
52
56 inline const Aws::Vector<LoggingDestination>& GetDestinations() const { return m_destinations; }
57 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
58 template<typename DestinationsT = Aws::Vector<LoggingDestination>>
59 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
60 template<typename DestinationsT = Aws::Vector<LoggingDestination>>
61 CreateQueryLoggingConfigurationRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
62 template<typename DestinationsT = LoggingDestination>
63 CreateQueryLoggingConfigurationRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
65
67
71 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
72 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
73 template<typename WorkspaceIdT = Aws::String>
74 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
75 template<typename WorkspaceIdT = Aws::String>
76 CreateQueryLoggingConfigurationRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
78 private:
79
81 bool m_clientTokenHasBeenSet = true;
82
84 bool m_destinationsHasBeenSet = false;
85
86 Aws::String m_workspaceId;
87 bool m_workspaceIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace PrometheusService
92} // 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