AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateIdentitySourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mpa/MPARequest.h>
11#include <aws/mpa/MPA_EXPORTS.h>
12#include <aws/mpa/model/IdentitySourceParameters.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MPA {
18namespace Model {
19
23 public:
24 AWS_MPA_API CreateIdentitySourceRequest() = 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 "CreateIdentitySource"; }
31
32 AWS_MPA_API Aws::String SerializePayload() const override;
33
35
40 inline const IdentitySourceParameters& GetIdentitySourceParameters() const { return m_identitySourceParameters; }
41 inline bool IdentitySourceParametersHasBeenSet() const { return m_identitySourceParametersHasBeenSet; }
42 template <typename IdentitySourceParametersT = IdentitySourceParameters>
43 void SetIdentitySourceParameters(IdentitySourceParametersT&& value) {
44 m_identitySourceParametersHasBeenSet = true;
45 m_identitySourceParameters = std::forward<IdentitySourceParametersT>(value);
46 }
47 template <typename IdentitySourceParametersT = IdentitySourceParameters>
48 CreateIdentitySourceRequest& WithIdentitySourceParameters(IdentitySourceParametersT&& value) {
49 SetIdentitySourceParameters(std::forward<IdentitySourceParametersT>(value));
50 return *this;
51 }
53
55
72 inline const Aws::String& GetClientToken() const { return m_clientToken; }
73 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
74 template <typename ClientTokenT = Aws::String>
75 void SetClientToken(ClientTokenT&& value) {
76 m_clientTokenHasBeenSet = true;
77 m_clientToken = std::forward<ClientTokenT>(value);
78 }
79 template <typename ClientTokenT = Aws::String>
81 SetClientToken(std::forward<ClientTokenT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
103 CreateIdentitySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
106 return *this;
107 }
109 private:
110 IdentitySourceParameters m_identitySourceParameters;
111
113
115 bool m_identitySourceParametersHasBeenSet = false;
116 bool m_clientTokenHasBeenSet = true;
117 bool m_tagsHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace MPA
122} // namespace Aws
CreateIdentitySourceRequest & WithClientToken(ClientTokenT &&value)
AWS_MPA_API CreateIdentitySourceRequest()=default
AWS_MPA_API Aws::String SerializePayload() const override
void SetIdentitySourceParameters(IdentitySourceParametersT &&value)
CreateIdentitySourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
const IdentitySourceParameters & GetIdentitySourceParameters() const
CreateIdentitySourceRequest & WithIdentitySourceParameters(IdentitySourceParametersT &&value)
CreateIdentitySourceRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
static Aws::Utils::UUID PseudoRandomUUID()
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