AWS SDK for C++

AWS SDK for C++ Version 1.11.639

Loading...
Searching...
No Matches
UpdateTermsRequest.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 UpdateTermsRequest() = 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 "UpdateTerms"; }
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& GetTermsId() const { return m_termsId; }
45 inline bool TermsIdHasBeenSet() const { return m_termsIdHasBeenSet; }
46 template<typename TermsIdT = Aws::String>
47 void SetTermsId(TermsIdT&& value) { m_termsIdHasBeenSet = true; m_termsId = std::forward<TermsIdT>(value); }
48 template<typename TermsIdT = Aws::String>
49 UpdateTermsRequest& WithTermsId(TermsIdT&& value) { SetTermsId(std::forward<TermsIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
57 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
58 template<typename UserPoolIdT = Aws::String>
59 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
60 template<typename UserPoolIdT = Aws::String>
61 UpdateTermsRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetTermsName() const { return m_termsName; }
69 inline bool TermsNameHasBeenSet() const { return m_termsNameHasBeenSet; }
70 template<typename TermsNameT = Aws::String>
71 void SetTermsName(TermsNameT&& value) { m_termsNameHasBeenSet = true; m_termsName = std::forward<TermsNameT>(value); }
72 template<typename TermsNameT = Aws::String>
73 UpdateTermsRequest& WithTermsName(TermsNameT&& value) { SetTermsName(std::forward<TermsNameT>(value)); return *this;}
75
77
81 inline TermsSourceType GetTermsSource() const { return m_termsSource; }
82 inline bool TermsSourceHasBeenSet() const { return m_termsSourceHasBeenSet; }
83 inline void SetTermsSource(TermsSourceType value) { m_termsSourceHasBeenSet = true; m_termsSource = value; }
84 inline UpdateTermsRequest& WithTermsSource(TermsSourceType value) { SetTermsSource(value); return *this;}
86
88
92 inline TermsEnforcementType GetEnforcement() const { return m_enforcement; }
93 inline bool EnforcementHasBeenSet() const { return m_enforcementHasBeenSet; }
94 inline void SetEnforcement(TermsEnforcementType value) { m_enforcementHasBeenSet = true; m_enforcement = value; }
97
99
107 inline const Aws::Map<Aws::String, Aws::String>& GetLinks() const { return m_links; }
108 inline bool LinksHasBeenSet() const { return m_linksHasBeenSet; }
109 template<typename LinksT = Aws::Map<Aws::String, Aws::String>>
110 void SetLinks(LinksT&& value) { m_linksHasBeenSet = true; m_links = std::forward<LinksT>(value); }
111 template<typename LinksT = Aws::Map<Aws::String, Aws::String>>
112 UpdateTermsRequest& WithLinks(LinksT&& value) { SetLinks(std::forward<LinksT>(value)); return *this;}
113 template<typename LinksKeyT = Aws::String, typename LinksValueT = Aws::String>
114 UpdateTermsRequest& AddLinks(LinksKeyT&& key, LinksValueT&& value) {
115 m_linksHasBeenSet = true; m_links.emplace(std::forward<LinksKeyT>(key), std::forward<LinksValueT>(value)); return *this;
116 }
118 private:
119
120 Aws::String m_termsId;
121 bool m_termsIdHasBeenSet = false;
122
123 Aws::String m_userPoolId;
124 bool m_userPoolIdHasBeenSet = false;
125
126 Aws::String m_termsName;
127 bool m_termsNameHasBeenSet = false;
128
130 bool m_termsSourceHasBeenSet = false;
131
133 bool m_enforcementHasBeenSet = false;
134
136 bool m_linksHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CognitoIdentityProvider
141} // 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