AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateTrustedEntitySetRequest.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 UpdateTrustedEntitySetRequest() = 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 "UpdateTrustedEntitySet"; }
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
58 inline const Aws::String& GetTrustedEntitySetId() const { return m_trustedEntitySetId; }
59 inline bool TrustedEntitySetIdHasBeenSet() const { return m_trustedEntitySetIdHasBeenSet; }
60 template <typename TrustedEntitySetIdT = Aws::String>
61 void SetTrustedEntitySetId(TrustedEntitySetIdT&& value) {
62 m_trustedEntitySetIdHasBeenSet = true;
63 m_trustedEntitySetId = std::forward<TrustedEntitySetIdT>(value);
64 }
65 template <typename TrustedEntitySetIdT = Aws::String>
67 SetTrustedEntitySetId(std::forward<TrustedEntitySetIdT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetLocation() const { return m_location; }
97 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
98 template <typename LocationT = Aws::String>
99 void SetLocation(LocationT&& value) {
100 m_locationHasBeenSet = true;
101 m_location = std::forward<LocationT>(value);
102 }
103 template <typename LocationT = Aws::String>
105 SetLocation(std::forward<LocationT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
116 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
117 template <typename ExpectedBucketOwnerT = Aws::String>
118 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
119 m_expectedBucketOwnerHasBeenSet = true;
120 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
121 }
122 template <typename ExpectedBucketOwnerT = Aws::String>
124 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
125 return *this;
126 }
128
130
136 inline bool GetActivate() const { return m_activate; }
137 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
138 inline void SetActivate(bool value) {
139 m_activateHasBeenSet = true;
140 m_activate = value;
141 }
143 SetActivate(value);
144 return *this;
145 }
147 private:
148 Aws::String m_detectorId;
149
150 Aws::String m_trustedEntitySetId;
151
152 Aws::String m_name;
153
154 Aws::String m_location;
155
156 Aws::String m_expectedBucketOwner;
157
158 bool m_activate{false};
159 bool m_detectorIdHasBeenSet = false;
160 bool m_trustedEntitySetIdHasBeenSet = false;
161 bool m_nameHasBeenSet = false;
162 bool m_locationHasBeenSet = false;
163 bool m_expectedBucketOwnerHasBeenSet = false;
164 bool m_activateHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace GuardDuty
169} // namespace Aws
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
UpdateTrustedEntitySetRequest & WithLocation(LocationT &&value)
UpdateTrustedEntitySetRequest & WithDetectorId(DetectorIdT &&value)
UpdateTrustedEntitySetRequest & WithTrustedEntitySetId(TrustedEntitySetIdT &&value)
UpdateTrustedEntitySetRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
UpdateTrustedEntitySetRequest & WithName(NameT &&value)
AWS_GUARDDUTY_API UpdateTrustedEntitySetRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String