AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
UpdateResourceServerRequest.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/ResourceServerScopeType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CognitoIdentityProvider {
17namespace Model {
18
22 public:
23 AWS_COGNITOIDENTITYPROVIDER_API UpdateResourceServerRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceServer"; }
30
31 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
32
33 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
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>
49 SetUserPoolId(std::forward<UserPoolIdT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::String& GetIdentifier() const { return m_identifier; }
64 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
65 template <typename IdentifierT = Aws::String>
66 void SetIdentifier(IdentifierT&& value) {
67 m_identifierHasBeenSet = true;
68 m_identifier = std::forward<IdentifierT>(value);
69 }
70 template <typename IdentifierT = Aws::String>
72 SetIdentifier(std::forward<IdentifierT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const { return m_scopes; }
101 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
102 template <typename ScopesT = Aws::Vector<ResourceServerScopeType>>
103 void SetScopes(ScopesT&& value) {
104 m_scopesHasBeenSet = true;
105 m_scopes = std::forward<ScopesT>(value);
106 }
107 template <typename ScopesT = Aws::Vector<ResourceServerScopeType>>
109 SetScopes(std::forward<ScopesT>(value));
110 return *this;
111 }
112 template <typename ScopesT = ResourceServerScopeType>
114 m_scopesHasBeenSet = true;
115 m_scopes.emplace_back(std::forward<ScopesT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_userPoolId;
121
122 Aws::String m_identifier;
123
124 Aws::String m_name;
125
127 bool m_userPoolIdHasBeenSet = false;
128 bool m_identifierHasBeenSet = false;
129 bool m_nameHasBeenSet = false;
130 bool m_scopesHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace CognitoIdentityProvider
135} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateResourceServerRequest & WithIdentifier(IdentifierT &&value)
AWS_COGNITOIDENTITYPROVIDER_API UpdateResourceServerRequest()=default
const Aws::Vector< ResourceServerScopeType > & GetScopes() const
UpdateResourceServerRequest & WithUserPoolId(UserPoolIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector