AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateMemberDetectorsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GuardDuty
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 "UpdateMemberDetectors"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
41 
45  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
46 
50  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
51 
55  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
56 
60  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
61 
65  inline UpdateMemberDetectorsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
66 
70  inline UpdateMemberDetectorsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
71 
75  inline UpdateMemberDetectorsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
76 
77 
81  inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
82 
86  inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
87 
91  inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
92 
96  inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
97 
101  inline UpdateMemberDetectorsRequest& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
102 
106  inline UpdateMemberDetectorsRequest& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
107 
111  inline UpdateMemberDetectorsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
112 
116  inline UpdateMemberDetectorsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
117 
121  inline UpdateMemberDetectorsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
122 
123 
127  inline const DataSourceConfigurations& GetDataSources() const{ return m_dataSources; }
128 
132  inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
133 
137  inline void SetDataSources(const DataSourceConfigurations& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
138 
142  inline void SetDataSources(DataSourceConfigurations&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
143 
147  inline UpdateMemberDetectorsRequest& WithDataSources(const DataSourceConfigurations& value) { SetDataSources(value); return *this;}
148 
152  inline UpdateMemberDetectorsRequest& WithDataSources(DataSourceConfigurations&& value) { SetDataSources(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_detectorId;
157  bool m_detectorIdHasBeenSet;
158 
159  Aws::Vector<Aws::String> m_accountIds;
160  bool m_accountIdsHasBeenSet;
161 
162  DataSourceConfigurations m_dataSources;
163  bool m_dataSourcesHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace GuardDuty
168 } // namespace Aws
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::AccountIdsHasBeenSet
bool AccountIdsHasBeenSet() const
Definition: UpdateMemberDetectorsRequest.h:86
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::WithDataSources
UpdateMemberDetectorsRequest & WithDataSources(DataSourceConfigurations &&value)
Definition: UpdateMemberDetectorsRequest.h:152
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SetDataSources
void SetDataSources(const DataSourceConfigurations &value)
Definition: UpdateMemberDetectorsRequest.h:137
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateMemberDetectorsRequest.h:32
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SetDataSources
void SetDataSources(DataSourceConfigurations &&value)
Definition: UpdateMemberDetectorsRequest.h:142
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SetAccountIds
void SetAccountIds(Aws::Vector< Aws::String > &&value)
Definition: UpdateMemberDetectorsRequest.h:96
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::AddAccountIds
UpdateMemberDetectorsRequest & AddAccountIds(Aws::String &&value)
Definition: UpdateMemberDetectorsRequest.h:116
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: UpdateMemberDetectorsRequest.h:60
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::AddAccountIds
UpdateMemberDetectorsRequest & AddAccountIds(const char *value)
Definition: UpdateMemberDetectorsRequest.h:121
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::WithDetectorId
UpdateMemberDetectorsRequest & WithDetectorId(const Aws::String &value)
Definition: UpdateMemberDetectorsRequest.h:65
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: UpdateMemberDetectorsRequest.h:55
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: UpdateMemberDetectorsRequest.h:50
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::WithAccountIds
UpdateMemberDetectorsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
Definition: UpdateMemberDetectorsRequest.h:106
AWSString.h
DataSourceConfigurations.h
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::GetAccountIds
const Aws::Vector< Aws::String > & GetAccountIds() const
Definition: UpdateMemberDetectorsRequest.h:81
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::GetDataSources
const DataSourceConfigurations & GetDataSources() const
Definition: UpdateMemberDetectorsRequest.h:127
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: UpdateMemberDetectorsRequest.h:45
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::SetAccountIds
void SetAccountIds(const Aws::Vector< Aws::String > &value)
Definition: UpdateMemberDetectorsRequest.h:91
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::WithAccountIds
UpdateMemberDetectorsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
Definition: UpdateMemberDetectorsRequest.h:101
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: UpdateMemberDetectorsRequest.h:40
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::WithDataSources
UpdateMemberDetectorsRequest & WithDataSources(const DataSourceConfigurations &value)
Definition: UpdateMemberDetectorsRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::UpdateMemberDetectorsRequest
UpdateMemberDetectorsRequest()
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::WithDetectorId
UpdateMemberDetectorsRequest & WithDetectorId(Aws::String &&value)
Definition: UpdateMemberDetectorsRequest.h:70
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::WithDetectorId
UpdateMemberDetectorsRequest & WithDetectorId(const char *value)
Definition: UpdateMemberDetectorsRequest.h:75
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::AddAccountIds
UpdateMemberDetectorsRequest & AddAccountIds(const Aws::String &value)
Definition: UpdateMemberDetectorsRequest.h:111
Aws::GuardDuty::Model::DataSourceConfigurations
Definition: DataSourceConfigurations.h:33
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest::DataSourcesHasBeenSet
bool DataSourcesHasBeenSet() const
Definition: UpdateMemberDetectorsRequest.h:132
Aws::GuardDuty::Model::UpdateMemberDetectorsRequest
Definition: UpdateMemberDetectorsRequest.h:24