AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Rekognition {
16namespace Model {
17
21 public:
22 AWS_REKOGNITION_API CreateUserRequest() = 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 "CreateUser"; }
29
30 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
31
32 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
40 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
41 template <typename CollectionIdT = Aws::String>
42 void SetCollectionId(CollectionIdT&& value) {
43 m_collectionIdHasBeenSet = true;
44 m_collectionId = std::forward<CollectionIdT>(value);
45 }
46 template <typename CollectionIdT = Aws::String>
47 CreateUserRequest& WithCollectionId(CollectionIdT&& value) {
48 SetCollectionId(std::forward<CollectionIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetUserId() const { return m_userId; }
59 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
60 template <typename UserIdT = Aws::String>
61 void SetUserId(UserIdT&& value) {
62 m_userIdHasBeenSet = true;
63 m_userId = std::forward<UserIdT>(value);
64 }
65 template <typename UserIdT = Aws::String>
66 CreateUserRequest& WithUserId(UserIdT&& value) {
67 SetUserId(std::forward<UserIdT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
80 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
81 template <typename ClientRequestTokenT = Aws::String>
82 void SetClientRequestToken(ClientRequestTokenT&& value) {
83 m_clientRequestTokenHasBeenSet = true;
84 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
85 }
86 template <typename ClientRequestTokenT = Aws::String>
87 CreateUserRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
88 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_collectionId;
94
95 Aws::String m_userId;
96
97 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
98 bool m_collectionIdHasBeenSet = false;
99 bool m_userIdHasBeenSet = false;
100 bool m_clientRequestTokenHasBeenSet = true;
101};
102
103} // namespace Model
104} // namespace Rekognition
105} // namespace Aws
const Aws::String & GetCollectionId() const
CreateUserRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetCollectionId(CollectionIdT &&value)
const Aws::String & GetClientRequestToken() const
CreateUserRequest & WithCollectionId(CollectionIdT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateUserRequest & WithUserId(UserIdT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REKOGNITION_API CreateUserRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String