AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateInvitationsRequest.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/macie2/Macie2Request.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Macie2 {
16namespace Model {
17
21 public:
22 AWS_MACIE2_API CreateInvitationsRequest() = 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 "CreateInvitations"; }
29
30 AWS_MACIE2_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
38 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
39 template <typename AccountIdsT = Aws::Vector<Aws::String>>
40 void SetAccountIds(AccountIdsT&& value) {
41 m_accountIdsHasBeenSet = true;
42 m_accountIds = std::forward<AccountIdsT>(value);
43 }
44 template <typename AccountIdsT = Aws::Vector<Aws::String>>
46 SetAccountIds(std::forward<AccountIdsT>(value));
47 return *this;
48 }
49 template <typename AccountIdsT = Aws::String>
51 m_accountIdsHasBeenSet = true;
52 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
53 return *this;
54 }
56
58
64 inline bool GetDisableEmailNotification() const { return m_disableEmailNotification; }
65 inline bool DisableEmailNotificationHasBeenSet() const { return m_disableEmailNotificationHasBeenSet; }
66 inline void SetDisableEmailNotification(bool value) {
67 m_disableEmailNotificationHasBeenSet = true;
68 m_disableEmailNotification = value;
69 }
72 return *this;
73 }
75
77
81 inline const Aws::String& GetMessage() const { return m_message; }
82 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 template <typename MessageT = Aws::String>
84 void SetMessage(MessageT&& value) {
85 m_messageHasBeenSet = true;
86 m_message = std::forward<MessageT>(value);
87 }
88 template <typename MessageT = Aws::String>
90 SetMessage(std::forward<MessageT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<Aws::String> m_accountIds;
96
97 bool m_disableEmailNotification{false};
98
99 Aws::String m_message;
100 bool m_accountIdsHasBeenSet = false;
101 bool m_disableEmailNotificationHasBeenSet = false;
102 bool m_messageHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Macie2
107} // namespace Aws
const Aws::Vector< Aws::String > & GetAccountIds() const
CreateInvitationsRequest & WithDisableEmailNotification(bool value)
CreateInvitationsRequest & WithAccountIds(AccountIdsT &&value)
AWS_MACIE2_API Aws::String SerializePayload() const override
CreateInvitationsRequest & WithMessage(MessageT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MACIE2_API CreateInvitationsRequest()=default
CreateInvitationsRequest & AddAccountIds(AccountIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector