AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateThreatIntelSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace GuardDuty {
15namespace Model {
16
20 public:
21 AWS_GUARDDUTY_API UpdateThreatIntelSetRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateThreatIntelSet"; }
28
29 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
30
32
39 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
40 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
41 template <typename DetectorIdT = Aws::String>
42 void SetDetectorId(DetectorIdT&& value) {
43 m_detectorIdHasBeenSet = true;
44 m_detectorId = std::forward<DetectorIdT>(value);
45 }
46 template <typename DetectorIdT = Aws::String>
48 SetDetectorId(std::forward<DetectorIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetThreatIntelSetId() const { return m_threatIntelSetId; }
58 inline bool ThreatIntelSetIdHasBeenSet() const { return m_threatIntelSetIdHasBeenSet; }
59 template <typename ThreatIntelSetIdT = Aws::String>
60 void SetThreatIntelSetId(ThreatIntelSetIdT&& value) {
61 m_threatIntelSetIdHasBeenSet = true;
62 m_threatIntelSetId = std::forward<ThreatIntelSetIdT>(value);
63 }
64 template <typename ThreatIntelSetIdT = Aws::String>
66 SetThreatIntelSetId(std::forward<ThreatIntelSetIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetLocation() const { return m_location; }
94 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
95 template <typename LocationT = Aws::String>
96 void SetLocation(LocationT&& value) {
97 m_locationHasBeenSet = true;
98 m_location = std::forward<LocationT>(value);
99 }
100 template <typename LocationT = Aws::String>
102 SetLocation(std::forward<LocationT>(value));
103 return *this;
104 }
106
108
112 inline bool GetActivate() const { return m_activate; }
113 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
114 inline void SetActivate(bool value) {
115 m_activateHasBeenSet = true;
116 m_activate = value;
117 }
119 SetActivate(value);
120 return *this;
121 }
123
125
129 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
130 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
131 template <typename ExpectedBucketOwnerT = Aws::String>
132 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
133 m_expectedBucketOwnerHasBeenSet = true;
134 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
135 }
136 template <typename ExpectedBucketOwnerT = Aws::String>
138 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_detectorId;
144
145 Aws::String m_threatIntelSetId;
146
147 Aws::String m_name;
148
149 Aws::String m_location;
150
151 bool m_activate{false};
152
153 Aws::String m_expectedBucketOwner;
154 bool m_detectorIdHasBeenSet = false;
155 bool m_threatIntelSetIdHasBeenSet = false;
156 bool m_nameHasBeenSet = false;
157 bool m_locationHasBeenSet = false;
158 bool m_activateHasBeenSet = false;
159 bool m_expectedBucketOwnerHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace GuardDuty
164} // namespace Aws
UpdateThreatIntelSetRequest & WithLocation(LocationT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
AWS_GUARDDUTY_API UpdateThreatIntelSetRequest()=default
UpdateThreatIntelSetRequest & WithActivate(bool value)
virtual const char * GetServiceRequestName() const override
UpdateThreatIntelSetRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
UpdateThreatIntelSetRequest & WithDetectorId(DetectorIdT &&value)
UpdateThreatIntelSetRequest & WithName(NameT &&value)
UpdateThreatIntelSetRequest & WithThreatIntelSetId(ThreatIntelSetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String