AWS SDK for C++  1.9.65
AWS SDK for C++
PutDetectorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace FraudDetector
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutDetector"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 
47  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 
52  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
53 
57  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
58 
62  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
63 
67  inline PutDetectorRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
68 
72  inline PutDetectorRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
73 
77  inline PutDetectorRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
78 
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline PutDetectorRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline PutDetectorRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 
118  inline PutDetectorRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
120 
124  inline const Aws::String& GetEventTypeName() const{ return m_eventTypeName; }
125 
129  inline bool EventTypeNameHasBeenSet() const { return m_eventTypeNameHasBeenSet; }
130 
134  inline void SetEventTypeName(const Aws::String& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = value; }
135 
139  inline void SetEventTypeName(Aws::String&& value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName = std::move(value); }
140 
144  inline void SetEventTypeName(const char* value) { m_eventTypeNameHasBeenSet = true; m_eventTypeName.assign(value); }
145 
149  inline PutDetectorRequest& WithEventTypeName(const Aws::String& value) { SetEventTypeName(value); return *this;}
150 
154  inline PutDetectorRequest& WithEventTypeName(Aws::String&& value) { SetEventTypeName(std::move(value)); return *this;}
155 
159  inline PutDetectorRequest& WithEventTypeName(const char* value) { SetEventTypeName(value); return *this;}
160 
161 
165  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
166 
170  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 
175  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 
180  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
181 
185  inline PutDetectorRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
186 
190  inline PutDetectorRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
191 
195  inline PutDetectorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
196 
200  inline PutDetectorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
201 
202  private:
203 
204  Aws::String m_detectorId;
205  bool m_detectorIdHasBeenSet;
206 
207  Aws::String m_description;
208  bool m_descriptionHasBeenSet;
209 
210  Aws::String m_eventTypeName;
211  bool m_eventTypeNameHasBeenSet;
212 
213  Aws::Vector<Tag> m_tags;
214  bool m_tagsHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace FraudDetector
219 } // namespace Aws
FraudDetectorRequest.h
Aws::FraudDetector::Model::PutDetectorRequest::WithDescription
PutDetectorRequest & WithDescription(const Aws::String &value)
Definition: PutDetectorRequest.h:108
Aws::FraudDetector::Model::PutDetectorRequest::WithEventTypeName
PutDetectorRequest & WithEventTypeName(const Aws::String &value)
Definition: PutDetectorRequest.h:149
Aws::FraudDetector::Model::PutDetectorRequest::WithDescription
PutDetectorRequest & WithDescription(Aws::String &&value)
Definition: PutDetectorRequest.h:113
Aws::FraudDetector::Model::PutDetectorRequest::WithTags
PutDetectorRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: PutDetectorRequest.h:185
Aws::FraudDetector::Model::PutDetectorRequest::EventTypeNameHasBeenSet
bool EventTypeNameHasBeenSet() const
Definition: PutDetectorRequest.h:129
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::PutDetectorRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PutDetectorRequest.h:170
Aws::FraudDetector::Model::PutDetectorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutDetectorRequest.h:32
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::PutDetectorRequest::SetDescription
void SetDescription(const char *value)
Definition: PutDetectorRequest.h:103
Aws::FraudDetector::Model::PutDetectorRequest::AddTags
PutDetectorRequest & AddTags(Tag &&value)
Definition: PutDetectorRequest.h:200
Aws::FraudDetector::Model::PutDetectorRequest
Definition: PutDetectorRequest.h:24
Aws::FraudDetector::Model::PutDetectorRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: PutDetectorRequest.h:175
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::FraudDetector::Model::PutDetectorRequest::WithDetectorId
PutDetectorRequest & WithDetectorId(Aws::String &&value)
Definition: PutDetectorRequest.h:72
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::PutDetectorRequest::SetEventTypeName
void SetEventTypeName(Aws::String &&value)
Definition: PutDetectorRequest.h:139
AWSVector.h
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::PutDetectorRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: PutDetectorRequest.h:180
Aws::FraudDetector::Model::PutDetectorRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: PutDetectorRequest.h:47
Aws::FraudDetector::Model::PutDetectorRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::PutDetectorRequest::GetEventTypeName
const Aws::String & GetEventTypeName() const
Definition: PutDetectorRequest.h:124
Aws::FraudDetector::Model::PutDetectorRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PutDetectorRequest.h:88
Aws::FraudDetector::Model::PutDetectorRequest::WithDetectorId
PutDetectorRequest & WithDetectorId(const Aws::String &value)
Definition: PutDetectorRequest.h:67
Aws::FraudDetector::Model::PutDetectorRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: PutDetectorRequest.h:42
AWSString.h
Aws::FraudDetector::Model::PutDetectorRequest::WithEventTypeName
PutDetectorRequest & WithEventTypeName(const char *value)
Definition: PutDetectorRequest.h:159
Aws::FraudDetector::Model::PutDetectorRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: PutDetectorRequest.h:52
Aws::FraudDetector::Model::PutDetectorRequest::SetEventTypeName
void SetEventTypeName(const Aws::String &value)
Definition: PutDetectorRequest.h:134
Aws::FraudDetector::Model::PutDetectorRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: PutDetectorRequest.h:98
Aws::FraudDetector::Model::PutDetectorRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: PutDetectorRequest.h:62
Aws::FraudDetector::Model::PutDetectorRequest::AddTags
PutDetectorRequest & AddTags(const Tag &value)
Definition: PutDetectorRequest.h:195
Aws::FraudDetector::Model::PutDetectorRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: PutDetectorRequest.h:57
Aws::FraudDetector::Model::PutDetectorRequest::PutDetectorRequest
PutDetectorRequest()
Aws::FraudDetector::Model::PutDetectorRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: PutDetectorRequest.h:165
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::PutDetectorRequest::WithEventTypeName
PutDetectorRequest & WithEventTypeName(Aws::String &&value)
Definition: PutDetectorRequest.h:154
Aws::FraudDetector::Model::PutDetectorRequest::SetEventTypeName
void SetEventTypeName(const char *value)
Definition: PutDetectorRequest.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::PutDetectorRequest::WithTags
PutDetectorRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: PutDetectorRequest.h:190
Aws::FraudDetector::Model::PutDetectorRequest::WithDescription
PutDetectorRequest & WithDescription(const char *value)
Definition: PutDetectorRequest.h:118
Aws::FraudDetector::Model::PutDetectorRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::FraudDetector::Model::PutDetectorRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: PutDetectorRequest.h:93
Aws::FraudDetector::Model::PutDetectorRequest::WithDetectorId
PutDetectorRequest & WithDetectorId(const char *value)
Definition: PutDetectorRequest.h:77
Aws::FraudDetector::Model::PutDetectorRequest::GetDescription
const Aws::String & GetDescription() const
Definition: PutDetectorRequest.h:83