AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateTermsRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/TermsEnforcementType.h>
10#include <aws/cognito-idp/model/TermsSourceType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CognitoIdentityProvider {
18namespace Model {
19
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API CreateTermsRequest() = 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 "CreateTerms"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
41 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
42 template <typename UserPoolIdT = Aws::String>
43 void SetUserPoolId(UserPoolIdT&& value) {
44 m_userPoolIdHasBeenSet = true;
45 m_userPoolId = std::forward<UserPoolIdT>(value);
46 }
47 template <typename UserPoolIdT = Aws::String>
48 CreateTermsRequest& WithUserPoolId(UserPoolIdT&& value) {
49 SetUserPoolId(std::forward<UserPoolIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClientId() const { return m_clientId; }
60 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
61 template <typename ClientIdT = Aws::String>
62 void SetClientId(ClientIdT&& value) {
63 m_clientIdHasBeenSet = true;
64 m_clientId = std::forward<ClientIdT>(value);
65 }
66 template <typename ClientIdT = Aws::String>
67 CreateTermsRequest& WithClientId(ClientIdT&& value) {
68 SetClientId(std::forward<ClientIdT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetTermsName() const { return m_termsName; }
82 inline bool TermsNameHasBeenSet() const { return m_termsNameHasBeenSet; }
83 template <typename TermsNameT = Aws::String>
84 void SetTermsName(TermsNameT&& value) {
85 m_termsNameHasBeenSet = true;
86 m_termsName = std::forward<TermsNameT>(value);
87 }
88 template <typename TermsNameT = Aws::String>
89 CreateTermsRequest& WithTermsName(TermsNameT&& value) {
90 SetTermsName(std::forward<TermsNameT>(value));
91 return *this;
92 }
94
96
100 inline TermsSourceType GetTermsSource() const { return m_termsSource; }
101 inline bool TermsSourceHasBeenSet() const { return m_termsSourceHasBeenSet; }
102 inline void SetTermsSource(TermsSourceType value) {
103 m_termsSourceHasBeenSet = true;
104 m_termsSource = value;
105 }
107 SetTermsSource(value);
108 return *this;
109 }
111
113
117 inline TermsEnforcementType GetEnforcement() const { return m_enforcement; }
118 inline bool EnforcementHasBeenSet() const { return m_enforcementHasBeenSet; }
120 m_enforcementHasBeenSet = true;
121 m_enforcement = value;
122 }
124 SetEnforcement(value);
125 return *this;
126 }
128
130
138 inline const Aws::Map<Aws::String, Aws::String>& GetLinks() const { return m_links; }
139 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
140 template <typename LinksT = Aws::Map<Aws::String, Aws::String>>
141 void SetLinks(LinksT&& value) {
142 m_linksHasBeenSet = true;
143 m_links = std::forward<LinksT>(value);
144 }
145 template <typename LinksT = Aws::Map<Aws::String, Aws::String>>
146 CreateTermsRequest& WithLinks(LinksT&& value) {
147 SetLinks(std::forward<LinksT>(value));
148 return *this;
149 }
150 template <typename LinksKeyT = Aws::String, typename LinksValueT = Aws::String>
151 CreateTermsRequest& AddLinks(LinksKeyT&& key, LinksValueT&& value) {
152 m_linksHasBeenSet = true;
153 m_links.emplace(std::forward<LinksKeyT>(key), std::forward<LinksValueT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_userPoolId;
159
160 Aws::String m_clientId;
161
162 Aws::String m_termsName;
163
165
167
169 bool m_userPoolIdHasBeenSet = false;
170 bool m_clientIdHasBeenSet = false;
171 bool m_termsNameHasBeenSet = false;
172 bool m_termsSourceHasBeenSet = false;
173 bool m_enforcementHasBeenSet = false;
174 bool m_linksHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace CognitoIdentityProvider
179} // namespace Aws
CreateTermsRequest & WithUserPoolId(UserPoolIdT &&value)
CreateTermsRequest & AddLinks(LinksKeyT &&key, LinksValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLinks() const
CreateTermsRequest & WithTermsSource(TermsSourceType value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API CreateTermsRequest()=default
CreateTermsRequest & WithEnforcement(TermsEnforcementType value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTermsRequest & WithTermsName(TermsNameT &&value)
CreateTermsRequest & WithClientId(ClientIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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