AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateResourceServerRequest.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 CreateResourceServerRequest() = 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 "CreateResourceServer"; }
30
31 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
32
33 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
40 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
41 template <typename UserPoolIdT = Aws::String>
42 void SetUserPoolId(UserPoolIdT&& value) {
43 m_userPoolIdHasBeenSet = true;
44 m_userPoolId = std::forward<UserPoolIdT>(value);
45 }
46 template <typename UserPoolIdT = Aws::String>
48 SetUserPoolId(std::forward<UserPoolIdT>(value));
49 return *this;
50 }
52
54
62 inline const Aws::String& GetIdentifier() const { return m_identifier; }
63 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
64 template <typename IdentifierT = Aws::String>
65 void SetIdentifier(IdentifierT&& value) {
66 m_identifierHasBeenSet = true;
67 m_identifier = std::forward<IdentifierT>(value);
68 }
69 template <typename IdentifierT = Aws::String>
71 SetIdentifier(std::forward<IdentifierT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const { return m_scopes; }
103 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
104 template <typename ScopesT = Aws::Vector<ResourceServerScopeType>>
105 void SetScopes(ScopesT&& value) {
106 m_scopesHasBeenSet = true;
107 m_scopes = std::forward<ScopesT>(value);
108 }
109 template <typename ScopesT = Aws::Vector<ResourceServerScopeType>>
111 SetScopes(std::forward<ScopesT>(value));
112 return *this;
113 }
114 template <typename ScopesT = ResourceServerScopeType>
116 m_scopesHasBeenSet = true;
117 m_scopes.emplace_back(std::forward<ScopesT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_userPoolId;
123
124 Aws::String m_identifier;
125
126 Aws::String m_name;
127
129 bool m_userPoolIdHasBeenSet = false;
130 bool m_identifierHasBeenSet = false;
131 bool m_nameHasBeenSet = false;
132 bool m_scopesHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace CognitoIdentityProvider
137} // namespace Aws
const Aws::Vector< ResourceServerScopeType > & GetScopes() const
CreateResourceServerRequest & WithUserPoolId(UserPoolIdT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateResourceServerRequest & WithIdentifier(IdentifierT &&value)
AWS_COGNITOIDENTITYPROVIDER_API CreateResourceServerRequest()=default
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
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