AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
46 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
47 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
48 inline CreateResourceServerRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
49 inline CreateResourceServerRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
50 inline CreateResourceServerRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
52
54
62 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
63 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
64 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
65 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
66 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
67 inline CreateResourceServerRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
68 inline CreateResourceServerRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
69 inline CreateResourceServerRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline CreateResourceServerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline CreateResourceServerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline CreateResourceServerRequest& WithName(const char* value) { SetName(value); return *this;}
85
87
91 inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const{ return m_scopes; }
92 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
93 inline void SetScopes(const Aws::Vector<ResourceServerScopeType>& value) { m_scopesHasBeenSet = true; m_scopes = value; }
94 inline void SetScopes(Aws::Vector<ResourceServerScopeType>&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); }
96 inline CreateResourceServerRequest& WithScopes(Aws::Vector<ResourceServerScopeType>&& value) { SetScopes(std::move(value)); return *this;}
97 inline CreateResourceServerRequest& AddScopes(const ResourceServerScopeType& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
98 inline CreateResourceServerRequest& AddScopes(ResourceServerScopeType&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_userPoolId;
103 bool m_userPoolIdHasBeenSet = false;
104
105 Aws::String m_identifier;
106 bool m_identifierHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
112 bool m_scopesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CognitoIdentityProvider
117} // namespace Aws
void SetScopes(Aws::Vector< ResourceServerScopeType > &&value)
CreateResourceServerRequest & WithScopes(const Aws::Vector< ResourceServerScopeType > &value)
CreateResourceServerRequest & WithName(const Aws::String &value)
CreateResourceServerRequest & AddScopes(const ResourceServerScopeType &value)
CreateResourceServerRequest & WithUserPoolId(Aws::String &&value)
void SetScopes(const Aws::Vector< ResourceServerScopeType > &value)
CreateResourceServerRequest & WithScopes(Aws::Vector< ResourceServerScopeType > &&value)
CreateResourceServerRequest & WithIdentifier(Aws::String &&value)
const Aws::Vector< ResourceServerScopeType > & GetScopes() const
CreateResourceServerRequest & AddScopes(ResourceServerScopeType &&value)
CreateResourceServerRequest & WithUserPoolId(const Aws::String &value)
CreateResourceServerRequest & WithIdentifier(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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