AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
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 UpdateResourceServerRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
49 inline UpdateResourceServerRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
50 inline UpdateResourceServerRequest& 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 UpdateResourceServerRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
68 inline UpdateResourceServerRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
69 inline UpdateResourceServerRequest& 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 UpdateResourceServerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline UpdateResourceServerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline UpdateResourceServerRequest& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const{ return m_scopes; }
91 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
92 inline void SetScopes(const Aws::Vector<ResourceServerScopeType>& value) { m_scopesHasBeenSet = true; m_scopes = value; }
93 inline void SetScopes(Aws::Vector<ResourceServerScopeType>&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); }
95 inline UpdateResourceServerRequest& WithScopes(Aws::Vector<ResourceServerScopeType>&& value) { SetScopes(std::move(value)); return *this;}
96 inline UpdateResourceServerRequest& AddScopes(const ResourceServerScopeType& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
97 inline UpdateResourceServerRequest& AddScopes(ResourceServerScopeType&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_userPoolId;
102 bool m_userPoolIdHasBeenSet = false;
103
104 Aws::String m_identifier;
105 bool m_identifierHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
111 bool m_scopesHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CognitoIdentityProvider
116} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
UpdateResourceServerRequest & WithName(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateResourceServerRequest & WithIdentifier(const Aws::String &value)
UpdateResourceServerRequest & WithUserPoolId(const Aws::String &value)
UpdateResourceServerRequest & WithScopes(Aws::Vector< ResourceServerScopeType > &&value)
UpdateResourceServerRequest & AddScopes(ResourceServerScopeType &&value)
void SetScopes(const Aws::Vector< ResourceServerScopeType > &value)
UpdateResourceServerRequest & WithIdentifier(Aws::String &&value)
UpdateResourceServerRequest & AddScopes(const ResourceServerScopeType &value)
const Aws::Vector< ResourceServerScopeType > & GetScopes() const
UpdateResourceServerRequest & WithUserPoolId(Aws::String &&value)
UpdateResourceServerRequest & WithScopes(const Aws::Vector< ResourceServerScopeType > &value)
void SetScopes(Aws::Vector< ResourceServerScopeType > &&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