AWS SDK for C++  1.8.182
AWS SDK for C++
CreateFilterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace GuardDuty
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateFilter"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
44 
49  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
50 
55  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
56 
61  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
62 
67  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
68 
73  inline CreateFilterRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
74 
79  inline CreateFilterRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
80 
85  inline CreateFilterRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
86 
87 
93  inline const Aws::String& GetName() const{ return m_name; }
94 
100  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 
107  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
108 
114  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
115 
121  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
122 
128  inline CreateFilterRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
129 
135  inline CreateFilterRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
136 
142  inline CreateFilterRequest& WithName(const char* value) { SetName(value); return *this;}
143 
144 
148  inline const Aws::String& GetDescription() const{ return m_description; }
149 
153  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
154 
158  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
159 
163  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
164 
168  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
169 
173  inline CreateFilterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
174 
178  inline CreateFilterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
179 
183  inline CreateFilterRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
184 
185 
190  inline const FilterAction& GetAction() const{ return m_action; }
191 
196  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
197 
202  inline void SetAction(const FilterAction& value) { m_actionHasBeenSet = true; m_action = value; }
203 
208  inline void SetAction(FilterAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
209 
214  inline CreateFilterRequest& WithAction(const FilterAction& value) { SetAction(value); return *this;}
215 
220  inline CreateFilterRequest& WithAction(FilterAction&& value) { SetAction(std::move(value)); return *this;}
221 
222 
227  inline int GetRank() const{ return m_rank; }
228 
233  inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
234 
239  inline void SetRank(int value) { m_rankHasBeenSet = true; m_rank = value; }
240 
245  inline CreateFilterRequest& WithRank(int value) { SetRank(value); return *this;}
246 
247 
306  inline const FindingCriteria& GetFindingCriteria() const{ return m_findingCriteria; }
307 
366  inline bool FindingCriteriaHasBeenSet() const { return m_findingCriteriaHasBeenSet; }
367 
426  inline void SetFindingCriteria(const FindingCriteria& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = value; }
427 
486  inline void SetFindingCriteria(FindingCriteria&& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = std::move(value); }
487 
546  inline CreateFilterRequest& WithFindingCriteria(const FindingCriteria& value) { SetFindingCriteria(value); return *this;}
547 
606  inline CreateFilterRequest& WithFindingCriteria(FindingCriteria&& value) { SetFindingCriteria(std::move(value)); return *this;}
607 
608 
612  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
613 
617  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
618 
622  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
623 
627  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
628 
632  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
633 
637  inline CreateFilterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
638 
642  inline CreateFilterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
643 
647  inline CreateFilterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
648 
649 
653  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
654 
658  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
659 
663  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
664 
668  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
669 
673  inline CreateFilterRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
674 
678  inline CreateFilterRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
679 
683  inline CreateFilterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
684 
688  inline CreateFilterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
689 
693  inline CreateFilterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
694 
698  inline CreateFilterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
699 
703  inline CreateFilterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
704 
708  inline CreateFilterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
709 
713  inline CreateFilterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
714 
715  private:
716 
717  Aws::String m_detectorId;
718  bool m_detectorIdHasBeenSet;
719 
720  Aws::String m_name;
721  bool m_nameHasBeenSet;
722 
723  Aws::String m_description;
724  bool m_descriptionHasBeenSet;
725 
726  FilterAction m_action;
727  bool m_actionHasBeenSet;
728 
729  int m_rank;
730  bool m_rankHasBeenSet;
731 
732  FindingCriteria m_findingCriteria;
733  bool m_findingCriteriaHasBeenSet;
734 
735  Aws::String m_clientToken;
736  bool m_clientTokenHasBeenSet;
737 
739  bool m_tagsHasBeenSet;
740  };
741 
742 } // namespace Model
743 } // namespace GuardDuty
744 } // namespace Aws
Aws::GuardDuty::Model::CreateFilterRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateFilterRequest.h:612
Aws::GuardDuty::Model::CreateFilterRequest::WithRank
CreateFilterRequest & WithRank(int value)
Definition: CreateFilterRequest.h:245
Aws::GuardDuty::Model::CreateFilterRequest::AddTags
CreateFilterRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateFilterRequest.h:708
Aws::GuardDuty::Model::CreateFilterRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateFilterRequest.h:668
Aws::GuardDuty::Model::CreateFilterRequest::WithClientToken
CreateFilterRequest & WithClientToken(Aws::String &&value)
Definition: CreateFilterRequest.h:642
Aws::GuardDuty::Model::CreateFilterRequest::GetFindingCriteria
const FindingCriteria & GetFindingCriteria() const
Definition: CreateFilterRequest.h:306
Aws::GuardDuty::Model::CreateFilterRequest::WithFindingCriteria
CreateFilterRequest & WithFindingCriteria(FindingCriteria &&value)
Definition: CreateFilterRequest.h:606
Aws::GuardDuty::Model::CreateFilterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFilterRequest.h:34
Aws::GuardDuty::Model::CreateFilterRequest::WithDescription
CreateFilterRequest & WithDescription(const char *value)
Definition: CreateFilterRequest.h:183
Aws::GuardDuty::Model::CreateFilterRequest::WithTags
CreateFilterRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateFilterRequest.h:678
Aws::GuardDuty::Model::CreateFilterRequest::WithAction
CreateFilterRequest & WithAction(const FilterAction &value)
Definition: CreateFilterRequest.h:214
Aws::GuardDuty::Model::CreateFilterRequest::WithAction
CreateFilterRequest & WithAction(FilterAction &&value)
Definition: CreateFilterRequest.h:220
Aws::GuardDuty::Model::CreateFilterRequest::WithDescription
CreateFilterRequest & WithDescription(const Aws::String &value)
Definition: CreateFilterRequest.h:173
Aws::GuardDuty::Model::CreateFilterRequest::AddTags
CreateFilterRequest & AddTags(const char *key, const char *value)
Definition: CreateFilterRequest.h:713
Aws::GuardDuty::Model::CreateFilterRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateFilterRequest.h:153
Aws::GuardDuty::Model::CreateFilterRequest::FindingCriteriaHasBeenSet
bool FindingCriteriaHasBeenSet() const
Definition: CreateFilterRequest.h:366
Aws::GuardDuty::Model::CreateFilterRequest::WithClientToken
CreateFilterRequest & WithClientToken(const char *value)
Definition: CreateFilterRequest.h:647
Aws::GuardDuty::Model::CreateFilterRequest::AddTags
CreateFilterRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateFilterRequest.h:683
Aws::GuardDuty::Model::FindingCriteria
Definition: FindingCriteria.h:35
Aws::GuardDuty::Model::CreateFilterRequest::SetName
void SetName(const char *value)
Definition: CreateFilterRequest.h:121
Aws::GuardDuty::Model::CreateFilterRequest::WithDetectorId
CreateFilterRequest & WithDetectorId(Aws::String &&value)
Definition: CreateFilterRequest.h:79
Aws::GuardDuty::Model::CreateFilterRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateFilterRequest.h:653
Aws::GuardDuty::Model::CreateFilterRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateFilterRequest.h:163
Aws::GuardDuty::Model::FilterAction
FilterAction
Definition: FilterAction.h:17
Aws::GuardDuty::Model::CreateFilterRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreateFilterRequest.h:67
Aws::GuardDuty::Model::CreateFilterRequest::RankHasBeenSet
bool RankHasBeenSet() const
Definition: CreateFilterRequest.h:233
Aws::GuardDuty::Model::CreateFilterRequest::WithTags
CreateFilterRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateFilterRequest.h:673
Aws::GuardDuty::Model::CreateFilterRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateFilterRequest.h:617
Aws::GuardDuty::Model::CreateFilterRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreateFilterRequest.h:43
Aws::GuardDuty::Model::CreateFilterRequest::AddTags
CreateFilterRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateFilterRequest.h:703
Aws::GuardDuty::Model::CreateFilterRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateFilterRequest.h:632
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::CreateFilterRequest::GetAction
const FilterAction & GetAction() const
Definition: CreateFilterRequest.h:190
Aws::GuardDuty::Model::CreateFilterRequest::SetAction
void SetAction(FilterAction &&value)
Definition: CreateFilterRequest.h:208
Aws::GuardDuty::Model::CreateFilterRequest::WithClientToken
CreateFilterRequest & WithClientToken(const Aws::String &value)
Definition: CreateFilterRequest.h:637
Aws::GuardDuty::Model::CreateFilterRequest::SetFindingCriteria
void SetFindingCriteria(FindingCriteria &&value)
Definition: CreateFilterRequest.h:486
Aws::GuardDuty::Model::CreateFilterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::CreateFilterRequest::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: CreateFilterRequest.h:196
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::CreateFilterRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateFilterRequest.h:663
Aws::GuardDuty::Model::CreateFilterRequest::WithName
CreateFilterRequest & WithName(const Aws::String &value)
Definition: CreateFilterRequest.h:128
Aws::GuardDuty::Model::CreateFilterRequest::WithDescription
CreateFilterRequest & WithDescription(Aws::String &&value)
Definition: CreateFilterRequest.h:178
Aws::GuardDuty::Model::CreateFilterRequest::AddTags
CreateFilterRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateFilterRequest.h:688
Aws::GuardDuty::Model::CreateFilterRequest::AddTags
CreateFilterRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateFilterRequest.h:693
Aws::GuardDuty::Model::CreateFilterRequest::AddTags
CreateFilterRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateFilterRequest.h:698
AWSString.h
Aws::GuardDuty::Model::CreateFilterRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreateFilterRequest.h:55
Aws::GuardDuty::Model::CreateFilterRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateFilterRequest.h:100
Aws::GuardDuty::Model::CreateFilterRequest::WithName
CreateFilterRequest & WithName(Aws::String &&value)
Definition: CreateFilterRequest.h:135
Aws::GuardDuty::Model::CreateFilterRequest::WithDetectorId
CreateFilterRequest & WithDetectorId(const char *value)
Definition: CreateFilterRequest.h:85
Aws::GuardDuty::Model::CreateFilterRequest::SetFindingCriteria
void SetFindingCriteria(const FindingCriteria &value)
Definition: CreateFilterRequest.h:426
Aws::GuardDuty::Model::CreateFilterRequest
Definition: CreateFilterRequest.h:26
FilterAction.h
Aws::GuardDuty::Model::CreateFilterRequest::SetAction
void SetAction(const FilterAction &value)
Definition: CreateFilterRequest.h:202
Aws::GuardDuty::Model::CreateFilterRequest::WithName
CreateFilterRequest & WithName(const char *value)
Definition: CreateFilterRequest.h:142
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::CreateFilterRequest::WithDetectorId
CreateFilterRequest & WithDetectorId(const Aws::String &value)
Definition: CreateFilterRequest.h:73
Aws::GuardDuty::Model::CreateFilterRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateFilterRequest.h:114
Aws::GuardDuty::Model::CreateFilterRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateFilterRequest.h:148
Aws::GuardDuty::Model::CreateFilterRequest::WithFindingCriteria
CreateFilterRequest & WithFindingCriteria(const FindingCriteria &value)
Definition: CreateFilterRequest.h:546
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::CreateFilterRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateFilterRequest.h:107
Aws::GuardDuty::Model::CreateFilterRequest::CreateFilterRequest
CreateFilterRequest()
Aws::GuardDuty::Model::CreateFilterRequest::GetRank
int GetRank() const
Definition: CreateFilterRequest.h:227
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::CreateFilterRequest::GetName
const Aws::String & GetName() const
Definition: CreateFilterRequest.h:93
UUID.h
Aws::GuardDuty::Model::CreateFilterRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateFilterRequest.h:658
AWSMap.h
Aws::GuardDuty::Model::CreateFilterRequest::SetRank
void SetRank(int value)
Definition: CreateFilterRequest.h:239
Aws::GuardDuty::Model::CreateFilterRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreateFilterRequest.h:61
Aws::GuardDuty::Model::CreateFilterRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateFilterRequest.h:168
Aws::GuardDuty::Model::CreateFilterRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateFilterRequest.h:622
Aws::GuardDuty::Model::CreateFilterRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateFilterRequest.h:158
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
FindingCriteria.h
Aws::GuardDuty::Model::CreateFilterRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateFilterRequest.h:627
Aws::GuardDuty::Model::CreateFilterRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreateFilterRequest.h:49