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-appsync/include/aws/appsync/model/UserPoolConfig.h

233 lines
7.7 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appsync/AppSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appsync/model/DefaultAction.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppSync
{
namespace Model
{
/**
* <p>Describes an Amazon Cognito user pool configuration.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UserPoolConfig">AWS
* API Reference</a></p>
*/
class AWS_APPSYNC_API UserPoolConfig
{
public:
UserPoolConfig();
UserPoolConfig(Aws::Utils::Json::JsonView jsonValue);
UserPoolConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The user pool ID.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID.</p>
*/
inline UserPoolConfig& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline UserPoolConfig& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID.</p>
*/
inline UserPoolConfig& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline UserPoolConfig& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline UserPoolConfig& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
/**
* <p>The AWS Region in which the user pool was created.</p>
*/
inline UserPoolConfig& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
/**
* <p>The action that you want your GraphQL API to take when a request that uses
* Amazon Cognito user pool authentication doesn't match the Amazon Cognito user
* pool configuration.</p>
*/
inline const DefaultAction& GetDefaultAction() const{ return m_defaultAction; }
/**
* <p>The action that you want your GraphQL API to take when a request that uses
* Amazon Cognito user pool authentication doesn't match the Amazon Cognito user
* pool configuration.</p>
*/
inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
/**
* <p>The action that you want your GraphQL API to take when a request that uses
* Amazon Cognito user pool authentication doesn't match the Amazon Cognito user
* pool configuration.</p>
*/
inline void SetDefaultAction(const DefaultAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
/**
* <p>The action that you want your GraphQL API to take when a request that uses
* Amazon Cognito user pool authentication doesn't match the Amazon Cognito user
* pool configuration.</p>
*/
inline void SetDefaultAction(DefaultAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
/**
* <p>The action that you want your GraphQL API to take when a request that uses
* Amazon Cognito user pool authentication doesn't match the Amazon Cognito user
* pool configuration.</p>
*/
inline UserPoolConfig& WithDefaultAction(const DefaultAction& value) { SetDefaultAction(value); return *this;}
/**
* <p>The action that you want your GraphQL API to take when a request that uses
* Amazon Cognito user pool authentication doesn't match the Amazon Cognito user
* pool configuration.</p>
*/
inline UserPoolConfig& WithDefaultAction(DefaultAction&& value) { SetDefaultAction(std::move(value)); return *this;}
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline const Aws::String& GetAppIdClientRegex() const{ return m_appIdClientRegex; }
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline bool AppIdClientRegexHasBeenSet() const { return m_appIdClientRegexHasBeenSet; }
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline void SetAppIdClientRegex(const Aws::String& value) { m_appIdClientRegexHasBeenSet = true; m_appIdClientRegex = value; }
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline void SetAppIdClientRegex(Aws::String&& value) { m_appIdClientRegexHasBeenSet = true; m_appIdClientRegex = std::move(value); }
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline void SetAppIdClientRegex(const char* value) { m_appIdClientRegexHasBeenSet = true; m_appIdClientRegex.assign(value); }
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline UserPoolConfig& WithAppIdClientRegex(const Aws::String& value) { SetAppIdClientRegex(value); return *this;}
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline UserPoolConfig& WithAppIdClientRegex(Aws::String&& value) { SetAppIdClientRegex(std::move(value)); return *this;}
/**
* <p>A regular expression for validating the incoming Amazon Cognito user pool app
* client ID.</p>
*/
inline UserPoolConfig& WithAppIdClientRegex(const char* value) { SetAppIdClientRegex(value); return *this;}
private:
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_awsRegion;
bool m_awsRegionHasBeenSet;
DefaultAction m_defaultAction;
bool m_defaultActionHasBeenSet;
Aws::String m_appIdClientRegex;
bool m_appIdClientRegexHasBeenSet;
};
} // namespace Model
} // namespace AppSync
} // namespace Aws