AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccount(const AccountDetail& value) { m_accountHasBeenSet = true; m_account = value; }
44 inline void SetAccount(AccountDetail&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
45 inline CreateMemberRequest& WithAccount(const AccountDetail& value) { SetAccount(value); return *this;}
46 inline CreateMemberRequest& WithAccount(AccountDetail&& value) { SetAccount(std::move(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 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
60 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
61 inline CreateMemberRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
62 inline CreateMemberRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
63 inline CreateMemberRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
64 inline CreateMemberRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
65 inline CreateMemberRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
66 inline CreateMemberRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
67 inline CreateMemberRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
68 inline CreateMemberRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
69 inline CreateMemberRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
71 private:
72
73 AccountDetail m_account;
74 bool m_accountHasBeenSet = false;
75
77 bool m_tagsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Macie2
82} // namespace Aws
CreateMemberRequest & AddTags(const char *key, const char *value)
const AccountDetail & GetAccount() const
CreateMemberRequest & AddTags(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateMemberRequest & WithAccount(const AccountDetail &value)
CreateMemberRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateMemberRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAccount(const AccountDetail &value)
CreateMemberRequest & WithAccount(AccountDetail &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateMemberRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateMemberRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateMemberRequest & AddTags(const char *key, Aws::String &&value)
AWS_MACIE2_API Aws::String SerializePayload() const override
CreateMemberRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateMemberRequest & AddTags(Aws::String &&key, const Aws::String &value)
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