AWS SDK for C++  1.8.184
AWS SDK for C++
InviteMembersRequest.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 "InviteMembers"; }
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 InviteMembersRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
71 
76  inline InviteMembersRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
77 
82  inline InviteMembersRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
83 
84 
89  inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
90 
95  inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
96 
101  inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
102 
107  inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
108 
113  inline InviteMembersRequest& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
114 
119  inline InviteMembersRequest& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
120 
125  inline InviteMembersRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
126 
131  inline InviteMembersRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
132 
137  inline InviteMembersRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
138 
139 
144  inline bool GetDisableEmailNotification() const{ return m_disableEmailNotification; }
145 
150  inline bool DisableEmailNotificationHasBeenSet() const { return m_disableEmailNotificationHasBeenSet; }
151 
156  inline void SetDisableEmailNotification(bool value) { m_disableEmailNotificationHasBeenSet = true; m_disableEmailNotification = value; }
157 
162  inline InviteMembersRequest& WithDisableEmailNotification(bool value) { SetDisableEmailNotification(value); return *this;}
163 
164 
169  inline const Aws::String& GetMessage() const{ return m_message; }
170 
175  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
176 
181  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
182 
187  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
188 
193  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
194 
199  inline InviteMembersRequest& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
200 
205  inline InviteMembersRequest& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
206 
211  inline InviteMembersRequest& WithMessage(const char* value) { SetMessage(value); return *this;}
212 
213  private:
214 
215  Aws::String m_detectorId;
216  bool m_detectorIdHasBeenSet;
217 
218  Aws::Vector<Aws::String> m_accountIds;
219  bool m_accountIdsHasBeenSet;
220 
221  bool m_disableEmailNotification;
222  bool m_disableEmailNotificationHasBeenSet;
223 
224  Aws::String m_message;
225  bool m_messageHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace GuardDuty
230 } // namespace Aws
Aws::GuardDuty::Model::InviteMembersRequest::SetDisableEmailNotification
void SetDisableEmailNotification(bool value)
Definition: InviteMembersRequest.h:156
Aws::GuardDuty::Model::InviteMembersRequest::SetMessage
void SetMessage(const char *value)
Definition: InviteMembersRequest.h:193
Aws::GuardDuty::Model::InviteMembersRequest::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InviteMembersRequest.h:175
Aws::GuardDuty::Model::InviteMembersRequest::SetMessage
void SetMessage(const Aws::String &value)
Definition: InviteMembersRequest.h:181
Aws::GuardDuty::Model::InviteMembersRequest::AddAccountIds
InviteMembersRequest & AddAccountIds(Aws::String &&value)
Definition: InviteMembersRequest.h:131
Aws::GuardDuty::Model::InviteMembersRequest::WithMessage
InviteMembersRequest & WithMessage(const Aws::String &value)
Definition: InviteMembersRequest.h:199
Aws::GuardDuty::Model::InviteMembersRequest::WithMessage
InviteMembersRequest & WithMessage(const char *value)
Definition: InviteMembersRequest.h:211
Aws::GuardDuty::Model::InviteMembersRequest::GetMessage
const Aws::String & GetMessage() const
Definition: InviteMembersRequest.h:169
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::InviteMembersRequest::DisableEmailNotificationHasBeenSet
bool DisableEmailNotificationHasBeenSet() const
Definition: InviteMembersRequest.h:150
Aws::GuardDuty::Model::InviteMembersRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: InviteMembersRequest.h:46
AWSVector.h
Aws::GuardDuty::Model::InviteMembersRequest::WithDisableEmailNotification
InviteMembersRequest & WithDisableEmailNotification(bool value)
Definition: InviteMembersRequest.h:162
Aws::GuardDuty::Model::InviteMembersRequest::SetAccountIds
void SetAccountIds(Aws::Vector< Aws::String > &&value)
Definition: InviteMembersRequest.h:107
Aws::GuardDuty::Model::InviteMembersRequest::AccountIdsHasBeenSet
bool AccountIdsHasBeenSet() const
Definition: InviteMembersRequest.h:95
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::InviteMembersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::InviteMembersRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: InviteMembersRequest.h:58
Aws::GuardDuty::Model::InviteMembersRequest::WithAccountIds
InviteMembersRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
Definition: InviteMembersRequest.h:113
Aws::GuardDuty::Model::InviteMembersRequest
Definition: InviteMembersRequest.h:23
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
AWSString.h
Aws::GuardDuty::Model::InviteMembersRequest::AddAccountIds
InviteMembersRequest & AddAccountIds(const Aws::String &value)
Definition: InviteMembersRequest.h:125
Aws::GuardDuty::Model::InviteMembersRequest::AddAccountIds
InviteMembersRequest & AddAccountIds(const char *value)
Definition: InviteMembersRequest.h:137
Aws::GuardDuty::Model::InviteMembersRequest::SetMessage
void SetMessage(Aws::String &&value)
Definition: InviteMembersRequest.h:187
Aws::GuardDuty::Model::InviteMembersRequest::GetAccountIds
const Aws::Vector< Aws::String > & GetAccountIds() const
Definition: InviteMembersRequest.h:89
Aws::GuardDuty::Model::InviteMembersRequest::SetAccountIds
void SetAccountIds(const Aws::Vector< Aws::String > &value)
Definition: InviteMembersRequest.h:101
Aws::GuardDuty::Model::InviteMembersRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: InviteMembersRequest.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::InviteMembersRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: InviteMembersRequest.h:52
Aws::GuardDuty::Model::InviteMembersRequest::WithDetectorId
InviteMembersRequest & WithDetectorId(const Aws::String &value)
Definition: InviteMembersRequest.h:70
GuardDutyRequest.h
Aws::GuardDuty::Model::InviteMembersRequest::WithDetectorId
InviteMembersRequest & WithDetectorId(Aws::String &&value)
Definition: InviteMembersRequest.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::InviteMembersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: InviteMembersRequest.h:31
Aws::GuardDuty::Model::InviteMembersRequest::WithDetectorId
InviteMembersRequest & WithDetectorId(const char *value)
Definition: InviteMembersRequest.h:82
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::InviteMembersRequest::InviteMembersRequest
InviteMembersRequest()
Aws::GuardDuty::Model::InviteMembersRequest::GetDisableEmailNotification
bool GetDisableEmailNotification() const
Definition: InviteMembersRequest.h:144
Aws::GuardDuty::Model::InviteMembersRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: InviteMembersRequest.h:64
Aws::GuardDuty::Model::InviteMembersRequest::WithMessage
InviteMembersRequest & WithMessage(Aws::String &&value)
Definition: InviteMembersRequest.h:205
Aws::GuardDuty::Model::InviteMembersRequest::WithAccountIds
InviteMembersRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
Definition: InviteMembersRequest.h:119