AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AcceptInvitationRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Macie2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_MACIE2_API AcceptInvitationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AcceptInvitation"; }
31
32 AWS_MACIE2_API Aws::String SerializePayload() const override;
33
34
36
40 inline const Aws::String& GetAdministratorAccountId() const { return m_administratorAccountId; }
41 inline bool AdministratorAccountIdHasBeenSet() const { return m_administratorAccountIdHasBeenSet; }
42 template<typename AdministratorAccountIdT = Aws::String>
43 void SetAdministratorAccountId(AdministratorAccountIdT&& value) { m_administratorAccountIdHasBeenSet = true; m_administratorAccountId = std::forward<AdministratorAccountIdT>(value); }
44 template<typename AdministratorAccountIdT = Aws::String>
45 AcceptInvitationRequest& WithAdministratorAccountId(AdministratorAccountIdT&& value) { SetAdministratorAccountId(std::forward<AdministratorAccountIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetInvitationId() const { return m_invitationId; }
53 inline bool InvitationIdHasBeenSet() const { return m_invitationIdHasBeenSet; }
54 template<typename InvitationIdT = Aws::String>
55 void SetInvitationId(InvitationIdT&& value) { m_invitationIdHasBeenSet = true; m_invitationId = std::forward<InvitationIdT>(value); }
56 template<typename InvitationIdT = Aws::String>
57 AcceptInvitationRequest& WithInvitationId(InvitationIdT&& value) { SetInvitationId(std::forward<InvitationIdT>(value)); return *this;}
59
61
66 inline const Aws::String& GetMasterAccount() const { return m_masterAccount; }
67 inline bool MasterAccountHasBeenSet() const { return m_masterAccountHasBeenSet; }
68 template<typename MasterAccountT = Aws::String>
69 void SetMasterAccount(MasterAccountT&& value) { m_masterAccountHasBeenSet = true; m_masterAccount = std::forward<MasterAccountT>(value); }
70 template<typename MasterAccountT = Aws::String>
71 AcceptInvitationRequest& WithMasterAccount(MasterAccountT&& value) { SetMasterAccount(std::forward<MasterAccountT>(value)); return *this;}
73 private:
74
75 Aws::String m_administratorAccountId;
76 bool m_administratorAccountIdHasBeenSet = false;
77
78 Aws::String m_invitationId;
79 bool m_invitationIdHasBeenSet = false;
80
81 Aws::String m_masterAccount;
82 bool m_masterAccountHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Macie2
87} // namespace Aws
AWS_MACIE2_API AcceptInvitationRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_MACIE2_API Aws::String SerializePayload() const override
AcceptInvitationRequest & WithAdministratorAccountId(AdministratorAccountIdT &&value)
void SetAdministratorAccountId(AdministratorAccountIdT &&value)
AcceptInvitationRequest & WithMasterAccount(MasterAccountT &&value)
AcceptInvitationRequest & WithInvitationId(InvitationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String