AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
CreateTrustedEntitySetRequest.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/TrustedEntitySetFormat.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 CreateTrustedEntitySetRequest() = 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 "CreateTrustedEntitySet"; }
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 CreateTrustedEntitySetRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
53
55
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 CreateTrustedEntitySetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline TrustedEntitySetFormat GetFormat() const { return m_format; }
73 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
74 inline void SetFormat(TrustedEntitySetFormat value) { m_formatHasBeenSet = true; m_format = value; }
77
79
82 inline const Aws::String& GetLocation() const { return m_location; }
83 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
84 template<typename LocationT = Aws::String>
85 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
86 template<typename LocationT = Aws::String>
87 CreateTrustedEntitySetRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
89
91
95 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
96 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
97 template<typename ExpectedBucketOwnerT = Aws::String>
98 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
99 template<typename ExpectedBucketOwnerT = Aws::String>
100 CreateTrustedEntitySetRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
102
104
108 inline bool GetActivate() const { return m_activate; }
109 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
110 inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
111 inline CreateTrustedEntitySetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
113
115
118 inline const Aws::String& GetClientToken() const { return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 template<typename ClientTokenT = Aws::String>
121 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
122 template<typename ClientTokenT = Aws::String>
123 CreateTrustedEntitySetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
125
127
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
134 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 CreateTrustedEntitySetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
136 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
137 CreateTrustedEntitySetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
138 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
139 }
141 private:
142
143 Aws::String m_detectorId;
144 bool m_detectorIdHasBeenSet = false;
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
150 bool m_formatHasBeenSet = false;
151
152 Aws::String m_location;
153 bool m_locationHasBeenSet = false;
154
155 Aws::String m_expectedBucketOwner;
156 bool m_expectedBucketOwnerHasBeenSet = false;
157
158 bool m_activate{false};
159 bool m_activateHasBeenSet = false;
160
162 bool m_clientTokenHasBeenSet = true;
163
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace GuardDuty
170} // namespace Aws
AWS_GUARDDUTY_API CreateTrustedEntitySetRequest()=default
CreateTrustedEntitySetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateTrustedEntitySetRequest & WithClientToken(ClientTokenT &&value)
CreateTrustedEntitySetRequest & WithTags(TagsT &&value)
CreateTrustedEntitySetRequest & WithLocation(LocationT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateTrustedEntitySetRequest & WithName(NameT &&value)
CreateTrustedEntitySetRequest & WithDetectorId(DetectorIdT &&value)
CreateTrustedEntitySetRequest & WithFormat(TrustedEntitySetFormat value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateTrustedEntitySetRequest & 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