AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateResourceServerRequest.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 UpdateResourceServerRequest() = 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 "UpdateResourceServer"; }
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
45 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
46 template<typename UserPoolIdT = Aws::String>
47 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
48 template<typename UserPoolIdT = Aws::String>
49 UpdateResourceServerRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
51
53
61 inline const Aws::String& GetIdentifier() const { return m_identifier; }
62 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
63 template<typename IdentifierT = Aws::String>
64 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
65 template<typename IdentifierT = Aws::String>
66 UpdateResourceServerRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 UpdateResourceServerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
86 inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const { return m_scopes; }
87 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
88 template<typename ScopesT = Aws::Vector<ResourceServerScopeType>>
89 void SetScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes = std::forward<ScopesT>(value); }
90 template<typename ScopesT = Aws::Vector<ResourceServerScopeType>>
91 UpdateResourceServerRequest& WithScopes(ScopesT&& value) { SetScopes(std::forward<ScopesT>(value)); return *this;}
92 template<typename ScopesT = ResourceServerScopeType>
93 UpdateResourceServerRequest& AddScopes(ScopesT&& value) { m_scopesHasBeenSet = true; m_scopes.emplace_back(std::forward<ScopesT>(value)); return *this; }
95 private:
96
97 Aws::String m_userPoolId;
98 bool m_userPoolIdHasBeenSet = false;
99
100 Aws::String m_identifier;
101 bool m_identifierHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
107 bool m_scopesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CognitoIdentityProvider
112} // 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