AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateResourceServerRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/cognito-idp/model/ResourceServerScopeType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CognitoIdentityProvider
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COGNITOIDENTITYPROVIDER_API CreateResourceServerRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateResourceServer"; }
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
44 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
45 template<typename UserPoolIdT = Aws::String>
46 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
47 template<typename UserPoolIdT = Aws::String>
48 CreateResourceServerRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
50
52
60 inline const Aws::String& GetIdentifier() const { return m_identifier; }
61 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
62 template<typename IdentifierT = Aws::String>
63 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
64 template<typename IdentifierT = Aws::String>
65 CreateResourceServerRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 CreateResourceServerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
88 inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const { return m_scopes; }
89 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
90 template<typename ScopesT = Aws::Vector<ResourceServerScopeType>>
91 void SetScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes = std::forward<ScopesT>(value); }
92 template<typename ScopesT = Aws::Vector<ResourceServerScopeType>>
93 CreateResourceServerRequest& WithScopes(ScopesT&& value) { SetScopes(std::forward<ScopesT>(value)); return *this;}
94 template<typename ScopesT = ResourceServerScopeType>
95 CreateResourceServerRequest& AddScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes.emplace_back(std::forward<ScopesT>(value)); return *this; }
97 private:
98
99 Aws::String m_userPoolId;
100 bool m_userPoolIdHasBeenSet = false;
101
102 Aws::String m_identifier;
103 bool m_identifierHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
109 bool m_scopesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CognitoIdentityProvider
114} // 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