AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TriggerDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/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 GuardDuty {
21namespace Model {
22
29 public:
30 AWS_GUARDDUTY_API TriggerDetails() = default;
31 AWS_GUARDDUTY_API TriggerDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetGuardDutyFindingId() const { return m_guardDutyFindingId; }
40 inline bool GuardDutyFindingIdHasBeenSet() const { return m_guardDutyFindingIdHasBeenSet; }
41 template <typename GuardDutyFindingIdT = Aws::String>
42 void SetGuardDutyFindingId(GuardDutyFindingIdT&& value) {
43 m_guardDutyFindingIdHasBeenSet = true;
44 m_guardDutyFindingId = std::forward<GuardDutyFindingIdT>(value);
45 }
46 template <typename GuardDutyFindingIdT = Aws::String>
47 TriggerDetails& WithGuardDutyFindingId(GuardDutyFindingIdT&& value) {
48 SetGuardDutyFindingId(std::forward<GuardDutyFindingIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 TriggerDetails& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline TriggerType GetTriggerType() const { return m_triggerType; }
76 inline bool TriggerTypeHasBeenSet() const { return m_triggerTypeHasBeenSet; }
77 inline void SetTriggerType(TriggerType value) {
78 m_triggerTypeHasBeenSet = true;
79 m_triggerType = value;
80 }
82 SetTriggerType(value);
83 return *this;
84 }
86 private:
87 Aws::String m_guardDutyFindingId;
88
89 Aws::String m_description;
90
91 TriggerType m_triggerType{TriggerType::NOT_SET};
92 bool m_guardDutyFindingIdHasBeenSet = false;
93 bool m_descriptionHasBeenSet = false;
94 bool m_triggerTypeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace GuardDuty
99} // namespace Aws
AWS_GUARDDUTY_API TriggerDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
TriggerDetails & WithGuardDutyFindingId(GuardDutyFindingIdT &&value)
void SetGuardDutyFindingId(GuardDutyFindingIdT &&value)
const Aws::String & GetGuardDutyFindingId() const
AWS_GUARDDUTY_API TriggerDetails()=default
void SetDescription(DescriptionT &&value)
void SetTriggerType(TriggerType value)
TriggerDetails & WithTriggerType(TriggerType value)
TriggerDetails & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
AWS_GUARDDUTY_API TriggerDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue