/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CognitoIdentityProvider { namespace Model { /** */ class UpdateResourceServerRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API UpdateResourceServerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceServer"; } AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The user pool ID for the user pool.

*/ inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; } /** *

The user pool ID for the user pool.

*/ inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; } /** *

The user pool ID for the user pool.

*/ inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; } /** *

The user pool ID for the user pool.

*/ inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); } /** *

The user pool ID for the user pool.

*/ inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); } /** *

The user pool ID for the user pool.

*/ inline UpdateResourceServerRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;} /** *

The user pool ID for the user pool.

*/ inline UpdateResourceServerRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;} /** *

The user pool ID for the user pool.

*/ inline UpdateResourceServerRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;} /** *

The identifier for the resource server.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

The identifier for the resource server.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

The identifier for the resource server.

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

The identifier for the resource server.

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

The identifier for the resource server.

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

The identifier for the resource server.

*/ inline UpdateResourceServerRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

The identifier for the resource server.

*/ inline UpdateResourceServerRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

The identifier for the resource server.

*/ inline UpdateResourceServerRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} /** *

The name of the resource server.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the resource server.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the resource server.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the resource server.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the resource server.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the resource server.

*/ inline UpdateResourceServerRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the resource server.

*/ inline UpdateResourceServerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the resource server.

*/ inline UpdateResourceServerRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The scope values to be set for the resource server.

*/ inline const Aws::Vector& GetScopes() const{ return m_scopes; } /** *

The scope values to be set for the resource server.

*/ inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; } /** *

The scope values to be set for the resource server.

*/ inline void SetScopes(const Aws::Vector& value) { m_scopesHasBeenSet = true; m_scopes = value; } /** *

The scope values to be set for the resource server.

*/ inline void SetScopes(Aws::Vector&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); } /** *

The scope values to be set for the resource server.

*/ inline UpdateResourceServerRequest& WithScopes(const Aws::Vector& value) { SetScopes(value); return *this;} /** *

The scope values to be set for the resource server.

*/ inline UpdateResourceServerRequest& WithScopes(Aws::Vector&& value) { SetScopes(std::move(value)); return *this;} /** *

The scope values to be set for the resource server.

*/ inline UpdateResourceServerRequest& AddScopes(const ResourceServerScopeType& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; } /** *

The scope values to be set for the resource server.

*/ inline UpdateResourceServerRequest& AddScopes(ResourceServerScopeType&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; } private: Aws::String m_userPoolId; bool m_userPoolIdHasBeenSet = false; Aws::String m_identifier; bool m_identifierHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_scopes; bool m_scopesHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws