AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
DetectMitigationActionsTaskTarget.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API DetectMitigationActionsTaskTarget() = default;
34
36
39 inline const Aws::Vector<Aws::String>& GetViolationIds() const { return m_violationIds; }
40 inline bool ViolationIdsHasBeenSet() const { return m_violationIdsHasBeenSet; }
41 template <typename ViolationIdsT = Aws::Vector<Aws::String>>
42 void SetViolationIds(ViolationIdsT&& value) {
43 m_violationIdsHasBeenSet = true;
44 m_violationIds = std::forward<ViolationIdsT>(value);
45 }
46 template <typename ViolationIdsT = Aws::Vector<Aws::String>>
48 SetViolationIds(std::forward<ViolationIdsT>(value));
49 return *this;
50 }
51 template <typename ViolationIdsT = Aws::String>
53 m_violationIdsHasBeenSet = true;
54 m_violationIds.emplace_back(std::forward<ViolationIdsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
64 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
65 template <typename SecurityProfileNameT = Aws::String>
66 void SetSecurityProfileName(SecurityProfileNameT&& value) {
67 m_securityProfileNameHasBeenSet = true;
68 m_securityProfileName = std::forward<SecurityProfileNameT>(value);
69 }
70 template <typename SecurityProfileNameT = Aws::String>
72 SetSecurityProfileName(std::forward<SecurityProfileNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetBehaviorName() const { return m_behaviorName; }
82 inline bool BehaviorNameHasBeenSet() const { return m_behaviorNameHasBeenSet; }
83 template <typename BehaviorNameT = Aws::String>
84 void SetBehaviorName(BehaviorNameT&& value) {
85 m_behaviorNameHasBeenSet = true;
86 m_behaviorName = std::forward<BehaviorNameT>(value);
87 }
88 template <typename BehaviorNameT = Aws::String>
90 SetBehaviorName(std::forward<BehaviorNameT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<Aws::String> m_violationIds;
96
97 Aws::String m_securityProfileName;
98
99 Aws::String m_behaviorName;
100 bool m_violationIdsHasBeenSet = false;
101 bool m_securityProfileNameHasBeenSet = false;
102 bool m_behaviorNameHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace IoT
107} // namespace Aws
DetectMitigationActionsTaskTarget & WithBehaviorName(BehaviorNameT &&value)
AWS_IOT_API DetectMitigationActionsTaskTarget(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API DetectMitigationActionsTaskTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectMitigationActionsTaskTarget & WithSecurityProfileName(SecurityProfileNameT &&value)
DetectMitigationActionsTaskTarget & AddViolationIds(ViolationIdsT &&value)
DetectMitigationActionsTaskTarget & WithViolationIds(ViolationIdsT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue