AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateMemberRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/macie2/model/AccountDetail.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Macie2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MACIE2_API CreateMemberRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateMember"; }
33
34 AWS_MACIE2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const AccountDetail& GetAccount() const { return m_account; }
42 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
43 template<typename AccountT = AccountDetail>
44 void SetAccount(AccountT&& value) { m_accountHasBeenSet = true; m_account = std::forward<AccountT>(value); }
45 template<typename AccountT = AccountDetail>
46 CreateMemberRequest& WithAccount(AccountT&& value) { SetAccount(std::forward<AccountT>(value)); return *this;}
48
50
57 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
58 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
59 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
60 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
61 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
62 CreateMemberRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
63 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
64 CreateMemberRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
65 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
66 }
68 private:
69
70 AccountDetail m_account;
71 bool m_accountHasBeenSet = false;
72
74 bool m_tagsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Macie2
79} // namespace Aws
const AccountDetail & GetAccount() const
CreateMemberRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateMemberRequest & WithAccount(AccountT &&value)
CreateMemberRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MACIE2_API CreateMemberRequest()=default
AWS_MACIE2_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String