AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
TriggerSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/TriggerSourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API TriggerSource() = default;
32 AWS_DATAZONE_API TriggerSource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline TriggerSourceType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(TriggerSourceType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 TriggerSource& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_name;
74 bool m_typeHasBeenSet = false;
75 bool m_nameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DataZone
80} // namespace Aws
TriggerSource & WithName(NameT &&value)
TriggerSource & WithType(TriggerSourceType value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
AWS_DATAZONE_API TriggerSource(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API TriggerSource()=default
TriggerSourceType GetType() const
AWS_DATAZONE_API TriggerSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(TriggerSourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue