AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
TriggerConfig.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/TriggerProperties.h>
9#include <aws/customer-profiles/model/TriggerType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
30 public:
31 AWS_CUSTOMERPROFILES_API TriggerConfig() = default;
32 AWS_CUSTOMERPROFILES_API TriggerConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API TriggerConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline TriggerType GetTriggerType() const { return m_triggerType; }
42 inline bool TriggerTypeHasBeenSet() const { return m_triggerTypeHasBeenSet; }
43 inline void SetTriggerType(TriggerType value) {
44 m_triggerTypeHasBeenSet = true;
45 m_triggerType = value;
46 }
48 SetTriggerType(value);
49 return *this;
50 }
52
54
58 inline const TriggerProperties& GetTriggerProperties() const { return m_triggerProperties; }
59 inline bool TriggerPropertiesHasBeenSet() const { return m_triggerPropertiesHasBeenSet; }
60 template <typename TriggerPropertiesT = TriggerProperties>
61 void SetTriggerProperties(TriggerPropertiesT&& value) {
62 m_triggerPropertiesHasBeenSet = true;
63 m_triggerProperties = std::forward<TriggerPropertiesT>(value);
64 }
65 template <typename TriggerPropertiesT = TriggerProperties>
66 TriggerConfig& WithTriggerProperties(TriggerPropertiesT&& value) {
67 SetTriggerProperties(std::forward<TriggerPropertiesT>(value));
68 return *this;
69 }
71 private:
72 TriggerType m_triggerType{TriggerType::NOT_SET};
73
74 TriggerProperties m_triggerProperties;
75 bool m_triggerTypeHasBeenSet = false;
76 bool m_triggerPropertiesHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CustomerProfiles
81} // namespace Aws
const TriggerProperties & GetTriggerProperties() const
void SetTriggerProperties(TriggerPropertiesT &&value)
AWS_CUSTOMERPROFILES_API TriggerConfig()=default
AWS_CUSTOMERPROFILES_API TriggerConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
TriggerConfig & WithTriggerProperties(TriggerPropertiesT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API TriggerConfig(Aws::Utils::Json::JsonView jsonValue)
TriggerConfig & WithTriggerType(TriggerType value)
Aws::Utils::Json::JsonValue JsonValue