AWS SDK for C++

AWS SDK for C++ Version 1.11.639

Loading...
Searching...
No Matches
CreateTermsRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cognito-idp/model/TermsSourceType.h>
11#include <aws/cognito-idp/model/TermsEnforcementType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CognitoIdentityProvider
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COGNITOIDENTITYPROVIDER_API CreateTermsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTerms"; }
34
35 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
36
37 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
45 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
46 template<typename UserPoolIdT = Aws::String>
47 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
48 template<typename UserPoolIdT = Aws::String>
49 CreateTermsRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetClientId() const { return m_clientId; }
58 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
59 template<typename ClientIdT = Aws::String>
60 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
61 template<typename ClientIdT = Aws::String>
62 CreateTermsRequest& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
64
66
73 inline const Aws::String& GetTermsName() const { return m_termsName; }
74 inline bool TermsNameHasBeenSet() const { return m_termsNameHasBeenSet; }
75 template<typename TermsNameT = Aws::String>
76 void SetTermsName(TermsNameT&& value) { m_termsNameHasBeenSet = true; m_termsName = std::forward<TermsNameT>(value); }
77 template<typename TermsNameT = Aws::String>
78 CreateTermsRequest& WithTermsName(TermsNameT&& value) { SetTermsName(std::forward<TermsNameT>(value)); return *this;}
80
82
86 inline TermsSourceType GetTermsSource() const { return m_termsSource; }
87 inline bool TermsSourceHasBeenSet() const { return m_termsSourceHasBeenSet; }
88 inline void SetTermsSource(TermsSourceType value) { m_termsSourceHasBeenSet = true; m_termsSource = value; }
89 inline CreateTermsRequest& WithTermsSource(TermsSourceType value) { SetTermsSource(value); return *this;}
91
93
97 inline TermsEnforcementType GetEnforcement() const { return m_enforcement; }
98 inline bool EnforcementHasBeenSet() const { return m_enforcementHasBeenSet; }
99 inline void SetEnforcement(TermsEnforcementType value) { m_enforcementHasBeenSet = true; m_enforcement = value; }
102
104
112 inline const Aws::Map<Aws::String, Aws::String>& GetLinks() const { return m_links; }
113 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
114 template<typename LinksT = Aws::Map<Aws::String, Aws::String>>
115 void SetLinks(LinksT&& value) { m_linksHasBeenSet = true; m_links = std::forward<LinksT>(value); }
116 template<typename LinksT = Aws::Map<Aws::String, Aws::String>>
117 CreateTermsRequest& WithLinks(LinksT&& value) { SetLinks(std::forward<LinksT>(value)); return *this;}
118 template<typename LinksKeyT = Aws::String, typename LinksValueT = Aws::String>
119 CreateTermsRequest& AddLinks(LinksKeyT&& key, LinksValueT&& value) {
120 m_linksHasBeenSet = true; m_links.emplace(std::forward<LinksKeyT>(key), std::forward<LinksValueT>(value)); return *this;
121 }
123 private:
124
125 Aws::String m_userPoolId;
126 bool m_userPoolIdHasBeenSet = false;
127
128 Aws::String m_clientId;
129 bool m_clientIdHasBeenSet = false;
130
131 Aws::String m_termsName;
132 bool m_termsNameHasBeenSet = false;
133
135 bool m_termsSourceHasBeenSet = false;
136
138 bool m_enforcementHasBeenSet = false;
139
141 bool m_linksHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace CognitoIdentityProvider
146} // 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