AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
UpdateTermsRequest.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 UpdateTermsRequest() = 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 "UpdateTerms"; }
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& GetTermsId() const { return m_termsId; }
41 inline bool TermsIdHasBeenSet() const { return m_termsIdHasBeenSet; }
42 template <typename TermsIdT = Aws::String>
43 void SetTermsId(TermsIdT&& value) {
44 m_termsIdHasBeenSet = true;
45 m_termsId = std::forward<TermsIdT>(value);
46 }
47 template <typename TermsIdT = Aws::String>
48 UpdateTermsRequest& WithTermsId(TermsIdT&& value) {
49 SetTermsId(std::forward<TermsIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
59 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
60 template <typename UserPoolIdT = Aws::String>
61 void SetUserPoolId(UserPoolIdT&& value) {
62 m_userPoolIdHasBeenSet = true;
63 m_userPoolId = std::forward<UserPoolIdT>(value);
64 }
65 template <typename UserPoolIdT = Aws::String>
66 UpdateTermsRequest& WithUserPoolId(UserPoolIdT&& value) {
67 SetUserPoolId(std::forward<UserPoolIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTermsName() const { return m_termsName; }
77 inline bool TermsNameHasBeenSet() const { return m_termsNameHasBeenSet; }
78 template <typename TermsNameT = Aws::String>
79 void SetTermsName(TermsNameT&& value) {
80 m_termsNameHasBeenSet = true;
81 m_termsName = std::forward<TermsNameT>(value);
82 }
83 template <typename TermsNameT = Aws::String>
84 UpdateTermsRequest& WithTermsName(TermsNameT&& value) {
85 SetTermsName(std::forward<TermsNameT>(value));
86 return *this;
87 }
89
91
95 inline TermsSourceType GetTermsSource() const { return m_termsSource; }
96 inline bool TermsSourceHasBeenSet() const { return m_termsSourceHasBeenSet; }
97 inline void SetTermsSource(TermsSourceType value) {
98 m_termsSourceHasBeenSet = true;
99 m_termsSource = value;
100 }
102 SetTermsSource(value);
103 return *this;
104 }
106
108
112 inline TermsEnforcementType GetEnforcement() const { return m_enforcement; }
113 inline bool EnforcementHasBeenSet() const { return m_enforcementHasBeenSet; }
115 m_enforcementHasBeenSet = true;
116 m_enforcement = value;
117 }
119 SetEnforcement(value);
120 return *this;
121 }
123
125
133 inline const Aws::Map<Aws::String, Aws::String>& GetLinks() const { return m_links; }
134 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
135 template <typename LinksT = Aws::Map<Aws::String, Aws::String>>
136 void SetLinks(LinksT&& value) {
137 m_linksHasBeenSet = true;
138 m_links = std::forward<LinksT>(value);
139 }
140 template <typename LinksT = Aws::Map<Aws::String, Aws::String>>
141 UpdateTermsRequest& WithLinks(LinksT&& value) {
142 SetLinks(std::forward<LinksT>(value));
143 return *this;
144 }
145 template <typename LinksKeyT = Aws::String, typename LinksValueT = Aws::String>
146 UpdateTermsRequest& AddLinks(LinksKeyT&& key, LinksValueT&& value) {
147 m_linksHasBeenSet = true;
148 m_links.emplace(std::forward<LinksKeyT>(key), std::forward<LinksValueT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_termsId;
154
155 Aws::String m_userPoolId;
156
157 Aws::String m_termsName;
158
160
162
164 bool m_termsIdHasBeenSet = false;
165 bool m_userPoolIdHasBeenSet = false;
166 bool m_termsNameHasBeenSet = false;
167 bool m_termsSourceHasBeenSet = false;
168 bool m_enforcementHasBeenSet = false;
169 bool m_linksHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace CognitoIdentityProvider
174} // namespace Aws
UpdateTermsRequest & WithTermsId(TermsIdT &&value)
UpdateTermsRequest & WithTermsName(TermsNameT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTermsRequest & WithTermsSource(TermsSourceType value)
UpdateTermsRequest & AddLinks(LinksKeyT &&key, LinksValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLinks() const
UpdateTermsRequest & WithUserPoolId(UserPoolIdT &&value)
UpdateTermsRequest & WithEnforcement(TermsEnforcementType value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API UpdateTermsRequest()=default
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