AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateIPSetRequest.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 UpdateIPSetRequest() = 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 "UpdateIPSet"; }
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>
47 UpdateIPSetRequest& WithDetectorId(DetectorIdT&& value) {
48 SetDetectorId(std::forward<DetectorIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIpSetId() const { return m_ipSetId; }
58 inline bool IpSetIdHasBeenSet() const { return m_ipSetIdHasBeenSet; }
59 template <typename IpSetIdT = Aws::String>
60 void SetIpSetId(IpSetIdT&& value) {
61 m_ipSetIdHasBeenSet = true;
62 m_ipSetId = std::forward<IpSetIdT>(value);
63 }
64 template <typename IpSetIdT = Aws::String>
65 UpdateIPSetRequest& WithIpSetId(IpSetIdT&& value) {
66 SetIpSetId(std::forward<IpSetIdT>(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>
83 UpdateIPSetRequest& WithName(NameT&& value) {
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>
101 UpdateIPSetRequest& WithLocation(LocationT&& value) {
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 }
118 inline UpdateIPSetRequest& WithActivate(bool value) {
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>
137 UpdateIPSetRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
138 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_detectorId;
144
145 Aws::String m_ipSetId;
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_ipSetIdHasBeenSet = 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
const Aws::String & GetExpectedBucketOwner() const
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
UpdateIPSetRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
UpdateIPSetRequest & WithDetectorId(DetectorIdT &&value)
UpdateIPSetRequest & WithName(NameT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
virtual const char * GetServiceRequestName() const override
UpdateIPSetRequest & WithActivate(bool value)
AWS_GUARDDUTY_API UpdateIPSetRequest()=default
UpdateIPSetRequest & WithIpSetId(IpSetIdT &&value)
UpdateIPSetRequest & WithLocation(LocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String