AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
InviteMembersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDutyRequest.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GuardDuty {
16namespace Model {
17
21 public:
22 AWS_GUARDDUTY_API InviteMembersRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "InviteMembers"; }
29
30 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
41 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
42 template <typename DetectorIdT = Aws::String>
43 void SetDetectorId(DetectorIdT&& value) {
44 m_detectorIdHasBeenSet = true;
45 m_detectorId = std::forward<DetectorIdT>(value);
46 }
47 template <typename DetectorIdT = Aws::String>
48 InviteMembersRequest& WithDetectorId(DetectorIdT&& value) {
49 SetDetectorId(std::forward<DetectorIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
60 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
61 template <typename AccountIdsT = Aws::Vector<Aws::String>>
62 void SetAccountIds(AccountIdsT&& value) {
63 m_accountIdsHasBeenSet = true;
64 m_accountIds = std::forward<AccountIdsT>(value);
65 }
66 template <typename AccountIdsT = Aws::Vector<Aws::String>>
67 InviteMembersRequest& WithAccountIds(AccountIdsT&& value) {
68 SetAccountIds(std::forward<AccountIdsT>(value));
69 return *this;
70 }
71 template <typename AccountIdsT = Aws::String>
72 InviteMembersRequest& AddAccountIds(AccountIdsT&& value) {
73 m_accountIdsHasBeenSet = true;
74 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
75 return *this;
76 }
78
80
84 inline bool GetDisableEmailNotification() const { return m_disableEmailNotification; }
85 inline bool DisableEmailNotificationHasBeenSet() const { return m_disableEmailNotificationHasBeenSet; }
86 inline void SetDisableEmailNotification(bool value) {
87 m_disableEmailNotificationHasBeenSet = true;
88 m_disableEmailNotification = value;
89 }
92 return *this;
93 }
95
97
101 inline const Aws::String& GetMessage() const { return m_message; }
102 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
103 template <typename MessageT = Aws::String>
104 void SetMessage(MessageT&& value) {
105 m_messageHasBeenSet = true;
106 m_message = std::forward<MessageT>(value);
107 }
108 template <typename MessageT = Aws::String>
110 SetMessage(std::forward<MessageT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_detectorId;
116
117 Aws::Vector<Aws::String> m_accountIds;
118
119 bool m_disableEmailNotification{false};
120
121 Aws::String m_message;
122 bool m_detectorIdHasBeenSet = false;
123 bool m_accountIdsHasBeenSet = false;
124 bool m_disableEmailNotificationHasBeenSet = false;
125 bool m_messageHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace GuardDuty
130} // namespace Aws
InviteMembersRequest & AddAccountIds(AccountIdsT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
InviteMembersRequest & WithDetectorId(DetectorIdT &&value)
InviteMembersRequest & WithAccountIds(AccountIdsT &&value)
InviteMembersRequest & WithMessage(MessageT &&value)
AWS_GUARDDUTY_API InviteMembersRequest()=default
const Aws::Vector< Aws::String > & GetAccountIds() const
virtual const char * GetServiceRequestName() const override
InviteMembersRequest & WithDisableEmailNotification(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector