AWS SDK for C++  1.8.182
AWS SDK for C++
StopMonitoringMembersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GuardDuty
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "StopMonitoringMembers"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
41 
46  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
47 
52  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
53 
58  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
59 
64  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
65 
70  inline StopMonitoringMembersRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
71 
76  inline StopMonitoringMembersRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
77 
82  inline StopMonitoringMembersRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
89 
93  inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
94 
98  inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
99 
103  inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
104 
108  inline StopMonitoringMembersRequest& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
109 
113  inline StopMonitoringMembersRequest& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
114 
118  inline StopMonitoringMembersRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
119 
123  inline StopMonitoringMembersRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
124 
128  inline StopMonitoringMembersRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
129 
130  private:
131 
132  Aws::String m_detectorId;
133  bool m_detectorIdHasBeenSet;
134 
135  Aws::Vector<Aws::String> m_accountIds;
136  bool m_accountIdsHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace GuardDuty
141 } // namespace Aws
Aws::GuardDuty::Model::StopMonitoringMembersRequest::StopMonitoringMembersRequest
StopMonitoringMembersRequest()
Aws::GuardDuty::Model::StopMonitoringMembersRequest::WithAccountIds
StopMonitoringMembersRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
Definition: StopMonitoringMembersRequest.h:113
Aws::GuardDuty::Model::StopMonitoringMembersRequest::AddAccountIds
StopMonitoringMembersRequest & AddAccountIds(Aws::String &&value)
Definition: StopMonitoringMembersRequest.h:123
Aws::GuardDuty::Model::StopMonitoringMembersRequest::WithDetectorId
StopMonitoringMembersRequest & WithDetectorId(Aws::String &&value)
Definition: StopMonitoringMembersRequest.h:76
Aws::GuardDuty::Model::StopMonitoringMembersRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: StopMonitoringMembersRequest.h:46
Aws::GuardDuty::Model::StopMonitoringMembersRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: StopMonitoringMembersRequest.h:64
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::StopMonitoringMembersRequest::WithDetectorId
StopMonitoringMembersRequest & WithDetectorId(const char *value)
Definition: StopMonitoringMembersRequest.h:82
Aws::GuardDuty::Model::StopMonitoringMembersRequest::WithDetectorId
StopMonitoringMembersRequest & WithDetectorId(const Aws::String &value)
Definition: StopMonitoringMembersRequest.h:70
AWSVector.h
Aws::GuardDuty::Model::StopMonitoringMembersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopMonitoringMembersRequest.h:31
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::StopMonitoringMembersRequest::AddAccountIds
StopMonitoringMembersRequest & AddAccountIds(const Aws::String &value)
Definition: StopMonitoringMembersRequest.h:118
Aws::GuardDuty::Model::StopMonitoringMembersRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: StopMonitoringMembersRequest.h:40
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::StopMonitoringMembersRequest::SetAccountIds
void SetAccountIds(const Aws::Vector< Aws::String > &value)
Definition: StopMonitoringMembersRequest.h:98
Aws::GuardDuty::Model::StopMonitoringMembersRequest
Definition: StopMonitoringMembersRequest.h:23
Aws::GuardDuty::Model::StopMonitoringMembersRequest::AddAccountIds
StopMonitoringMembersRequest & AddAccountIds(const char *value)
Definition: StopMonitoringMembersRequest.h:128
AWSString.h
Aws::GuardDuty::Model::StopMonitoringMembersRequest::WithAccountIds
StopMonitoringMembersRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
Definition: StopMonitoringMembersRequest.h:108
Aws::GuardDuty::Model::StopMonitoringMembersRequest::AccountIdsHasBeenSet
bool AccountIdsHasBeenSet() const
Definition: StopMonitoringMembersRequest.h:93
Aws::GuardDuty::Model::StopMonitoringMembersRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: StopMonitoringMembersRequest.h:52
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::StopMonitoringMembersRequest::GetAccountIds
const Aws::Vector< Aws::String > & GetAccountIds() const
Definition: StopMonitoringMembersRequest.h:88
Aws::GuardDuty::Model::StopMonitoringMembersRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: StopMonitoringMembersRequest.h:58
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::StopMonitoringMembersRequest::SetAccountIds
void SetAccountIds(Aws::Vector< Aws::String > &&value)
Definition: StopMonitoringMembersRequest.h:103
Aws::GuardDuty::Model::StopMonitoringMembersRequest::SerializePayload
Aws::String SerializePayload() const override