AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UpdateScraperLoggingConfigurationRequest.h
1
6#pragma once
7#include <aws/amp/PrometheusServiceRequest.h>
8#include <aws/amp/PrometheusService_EXPORTS.h>
9#include <aws/amp/model/ScraperComponent.h>
10#include <aws/amp/model/ScraperLoggingDestination.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 UpdateScraperLoggingConfigurationRequest() = 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 "UpdateScraperLoggingConfiguration"; }
31
32 AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetScraperId() const { return m_scraperId; }
39 inline bool ScraperIdHasBeenSet() const { return m_scraperIdHasBeenSet; }
40 template <typename ScraperIdT = Aws::String>
41 void SetScraperId(ScraperIdT&& value) {
42 m_scraperIdHasBeenSet = true;
43 m_scraperId = std::forward<ScraperIdT>(value);
44 }
45 template <typename ScraperIdT = Aws::String>
47 SetScraperId(std::forward<ScraperIdT>(value));
48 return *this;
49 }
51
53
56 inline const ScraperLoggingDestination& GetLoggingDestination() const { return m_loggingDestination; }
57 inline bool LoggingDestinationHasBeenSet() const { return m_loggingDestinationHasBeenSet; }
58 template <typename LoggingDestinationT = ScraperLoggingDestination>
59 void SetLoggingDestination(LoggingDestinationT&& value) {
60 m_loggingDestinationHasBeenSet = true;
61 m_loggingDestination = std::forward<LoggingDestinationT>(value);
62 }
63 template <typename LoggingDestinationT = ScraperLoggingDestination>
65 SetLoggingDestination(std::forward<LoggingDestinationT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<ScraperComponent>& GetScraperComponents() const { return m_scraperComponents; }
75 inline bool ScraperComponentsHasBeenSet() const { return m_scraperComponentsHasBeenSet; }
76 template <typename ScraperComponentsT = Aws::Vector<ScraperComponent>>
77 void SetScraperComponents(ScraperComponentsT&& value) {
78 m_scraperComponentsHasBeenSet = true;
79 m_scraperComponents = std::forward<ScraperComponentsT>(value);
80 }
81 template <typename ScraperComponentsT = Aws::Vector<ScraperComponent>>
83 SetScraperComponents(std::forward<ScraperComponentsT>(value));
84 return *this;
85 }
86 template <typename ScraperComponentsT = ScraperComponent>
88 m_scraperComponentsHasBeenSet = true;
89 m_scraperComponents.emplace_back(std::forward<ScraperComponentsT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_scraperId;
95
96 ScraperLoggingDestination m_loggingDestination;
97
98 Aws::Vector<ScraperComponent> m_scraperComponents;
99 bool m_scraperIdHasBeenSet = false;
100 bool m_loggingDestinationHasBeenSet = false;
101 bool m_scraperComponentsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace PrometheusService
106} // namespace Aws
UpdateScraperLoggingConfigurationRequest & WithScraperComponents(ScraperComponentsT &&value)
UpdateScraperLoggingConfigurationRequest & AddScraperComponents(ScraperComponentsT &&value)
UpdateScraperLoggingConfigurationRequest & WithLoggingDestination(LoggingDestinationT &&value)
AWS_PROMETHEUSSERVICE_API UpdateScraperLoggingConfigurationRequest()=default
AWS_PROMETHEUSSERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector