This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-cognito-idp/include/aws/cognito-idp/model/CreateResourceServerRequest.h

244 lines
9.0 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cognito-idp/model/ResourceServerScopeType.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API CreateResourceServerRequest : public CognitoIdentityProviderRequest
{
public:
CreateResourceServerRequest();
// 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 "CreateResourceServer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateResourceServerRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateResourceServerRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline CreateResourceServerRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline const Aws::String& GetIdentifier() const{ return m_identifier; }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline CreateResourceServerRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline CreateResourceServerRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
/**
* <p>A unique resource server identifier for the resource server. This could be an
* HTTPS endpoint where the resource server is located. For example,
* <code>https://my-weather-api.example.com</code>.</p>
*/
inline CreateResourceServerRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
/**
* <p>A friendly name for the resource server.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A friendly name for the resource server.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A friendly name for the resource server.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A friendly name for the resource server.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A friendly name for the resource server.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A friendly name for the resource server.</p>
*/
inline CreateResourceServerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A friendly name for the resource server.</p>
*/
inline CreateResourceServerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A friendly name for the resource server.</p>
*/
inline CreateResourceServerRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline const Aws::Vector<ResourceServerScopeType>& GetScopes() const{ return m_scopes; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline void SetScopes(const Aws::Vector<ResourceServerScopeType>& value) { m_scopesHasBeenSet = true; m_scopes = value; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline void SetScopes(Aws::Vector<ResourceServerScopeType>&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& WithScopes(const Aws::Vector<ResourceServerScopeType>& value) { SetScopes(value); return *this;}
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& WithScopes(Aws::Vector<ResourceServerScopeType>&& value) { SetScopes(std::move(value)); return *this;}
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& AddScopes(const ResourceServerScopeType& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
/**
* <p>A list of scopes. Each scope is map, where the keys are <code>name</code> and
* <code>description</code>.</p>
*/
inline CreateResourceServerRequest& AddScopes(ResourceServerScopeType&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; }
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_identifier;
bool m_identifierHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<ResourceServerScopeType> m_scopes;
bool m_scopesHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws