AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateIPSetRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace GuardDuty
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_GUARDDUTY_API UpdateIPSetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateIPSet"; }
31
32 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
33
34
36
43 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
44 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
45 template<typename DetectorIdT = Aws::String>
46 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
47 template<typename DetectorIdT = Aws::String>
48 UpdateIPSetRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetIpSetId() const { return m_ipSetId; }
56 inline bool IpSetIdHasBeenSet() const { return m_ipSetIdHasBeenSet; }
57 template<typename IpSetIdT = Aws::String>
58 void SetIpSetId(IpSetIdT&& value) { m_ipSetIdHasBeenSet = true; m_ipSetId = std::forward<IpSetIdT>(value); }
59 template<typename IpSetIdT = Aws::String>
60 UpdateIPSetRequest& WithIpSetId(IpSetIdT&& value) { SetIpSetId(std::forward<IpSetIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 UpdateIPSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetLocation() const { return m_location; }
80 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
81 template<typename LocationT = Aws::String>
82 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
83 template<typename LocationT = Aws::String>
84 UpdateIPSetRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
86
88
92 inline bool GetActivate() const { return m_activate; }
93 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
94 inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
95 inline UpdateIPSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
97
99
103 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
104 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
105 template<typename ExpectedBucketOwnerT = Aws::String>
106 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
107 template<typename ExpectedBucketOwnerT = Aws::String>
108 UpdateIPSetRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
110 private:
111
112 Aws::String m_detectorId;
113 bool m_detectorIdHasBeenSet = false;
114
115 Aws::String m_ipSetId;
116 bool m_ipSetIdHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_location;
122 bool m_locationHasBeenSet = false;
123
124 bool m_activate{false};
125 bool m_activateHasBeenSet = false;
126
127 Aws::String m_expectedBucketOwner;
128 bool m_expectedBucketOwnerHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace GuardDuty
133} // 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