AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ObservabilityAdmin {
20namespace Model {
21
31 public:
32 AWS_OBSERVABILITYADMIN_API DataSource() = default;
33 AWS_OBSERVABILITYADMIN_API DataSource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 DataSource& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 template <typename TypeT = Aws::String>
67 void SetType(TypeT&& value) {
68 m_typeHasBeenSet = true;
69 m_type = std::forward<TypeT>(value);
70 }
71 template <typename TypeT = Aws::String>
72 DataSource& WithType(TypeT&& value) {
73 SetType(std::forward<TypeT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_name;
79
80 Aws::String m_type;
81 bool m_nameHasBeenSet = false;
82 bool m_typeHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ObservabilityAdmin
87} // namespace Aws
DataSource & WithType(TypeT &&value)
Definition DataSource.h:72
AWS_OBSERVABILITYADMIN_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition DataSource.h:64
DataSource & WithName(NameT &&value)
Definition DataSource.h:52
const Aws::String & GetName() const
Definition DataSource.h:44
AWS_OBSERVABILITYADMIN_API DataSource()=default
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue