AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateIPSetRequest.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 <aws/guardduty/model/IpSetFormat.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace GuardDuty
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GUARDDUTY_API CreateIPSetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateIPSet"; }
34
35 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
47 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 template<typename DetectorIdT = Aws::String>
49 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
50 template<typename DetectorIdT = Aws::String>
51 CreateIPSetRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateIPSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline IpSetFormat GetFormat() const { return m_format; }
72 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
73 inline void SetFormat(IpSetFormat value) { m_formatHasBeenSet = true; m_format = value; }
74 inline CreateIPSetRequest& WithFormat(IpSetFormat value) { SetFormat(value); return *this;}
76
78
81 inline const Aws::String& GetLocation() const { return m_location; }
82 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
83 template<typename LocationT = Aws::String>
84 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
85 template<typename LocationT = Aws::String>
86 CreateIPSetRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
88
90
94 inline bool GetActivate() const { return m_activate; }
95 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
96 inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
97 inline CreateIPSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
99
101
104 inline const Aws::String& GetClientToken() const { return m_clientToken; }
105 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
106 template<typename ClientTokenT = Aws::String>
107 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
108 template<typename ClientTokenT = Aws::String>
109 CreateIPSetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
111
113
116 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
120 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 CreateIPSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
122 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateIPSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
125 }
127
129
133 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
134 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
135 template<typename ExpectedBucketOwnerT = Aws::String>
136 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
137 template<typename ExpectedBucketOwnerT = Aws::String>
138 CreateIPSetRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
140 private:
141
142 Aws::String m_detectorId;
143 bool m_detectorIdHasBeenSet = false;
144
145 Aws::String m_name;
146 bool m_nameHasBeenSet = false;
147
149 bool m_formatHasBeenSet = false;
150
151 Aws::String m_location;
152 bool m_locationHasBeenSet = false;
153
154 bool m_activate{false};
155 bool m_activateHasBeenSet = false;
156
158 bool m_clientTokenHasBeenSet = true;
159
161 bool m_tagsHasBeenSet = false;
162
163 Aws::String m_expectedBucketOwner;
164 bool m_expectedBucketOwnerHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace GuardDuty
169} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateIPSetRequest & WithFormat(IpSetFormat value)
virtual const char * GetServiceRequestName() const override
CreateIPSetRequest & WithTags(TagsT &&value)
const Aws::String & GetExpectedBucketOwner() const
CreateIPSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateIPSetRequest & WithDetectorId(DetectorIdT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CreateIPSetRequest & WithName(NameT &&value)
CreateIPSetRequest & WithActivate(bool value)
CreateIPSetRequest & WithClientToken(ClientTokenT &&value)
CreateIPSetRequest & WithLocation(LocationT &&value)
AWS_GUARDDUTY_API CreateIPSetRequest()=default
CreateIPSetRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String