AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ScraperComponent.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/ComponentConfig.h>
9#include <aws/amp/model/ScraperComponentType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PrometheusService {
21namespace Model {
22
30 public:
31 AWS_PROMETHEUSSERVICE_API ScraperComponent() = default;
32 AWS_PROMETHEUSSERVICE_API ScraperComponent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PROMETHEUSSERVICE_API ScraperComponent& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ScraperComponentType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(ScraperComponentType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const ComponentConfig& GetConfig() const { return m_config; }
57 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
58 template <typename ConfigT = ComponentConfig>
59 void SetConfig(ConfigT&& value) {
60 m_configHasBeenSet = true;
61 m_config = std::forward<ConfigT>(value);
62 }
63 template <typename ConfigT = ComponentConfig>
64 ScraperComponent& WithConfig(ConfigT&& value) {
65 SetConfig(std::forward<ConfigT>(value));
66 return *this;
67 }
69 private:
71
72 ComponentConfig m_config;
73 bool m_typeHasBeenSet = false;
74 bool m_configHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace PrometheusService
79} // namespace Aws
ScraperComponent & WithConfig(ConfigT &&value)
ScraperComponent & WithType(ScraperComponentType value)
AWS_PROMETHEUSSERVICE_API ScraperComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API ScraperComponent(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROMETHEUSSERVICE_API ScraperComponent()=default
Aws::Utils::Json::JsonValue JsonValue