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/UpdateDataSourceRequest.h

426 lines
14 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/appsync/AppSync_EXPORTS.h>
#include <aws/appsync/AppSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appsync/model/DataSourceType.h>
#include <aws/appsync/model/DynamodbDataSourceConfig.h>
#include <aws/appsync/model/LambdaDataSourceConfig.h>
#include <aws/appsync/model/ElasticsearchDataSourceConfig.h>
#include <aws/appsync/model/HttpDataSourceConfig.h>
#include <aws/appsync/model/RelationalDatabaseDataSourceConfig.h>
#include <utility>
namespace Aws
{
namespace AppSync
{
namespace Model
{
/**
*/
class AWS_APPSYNC_API UpdateDataSourceRequest : public AppSyncRequest
{
public:
UpdateDataSourceRequest();
// 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 "UpdateDataSource"; }
Aws::String SerializePayload() const override;
/**
* <p>The API ID.</p>
*/
inline const Aws::String& GetApiId() const{ return m_apiId; }
/**
* <p>The API ID.</p>
*/
inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
/**
* <p>The API ID.</p>
*/
inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
/**
* <p>The API ID.</p>
*/
inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
/**
* <p>The API ID.</p>
*/
inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
/**
* <p>The API ID.</p>
*/
inline UpdateDataSourceRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
/**
* <p>The API ID.</p>
*/
inline UpdateDataSourceRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
/**
* <p>The API ID.</p>
*/
inline UpdateDataSourceRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
/**
* <p>The new name for the data source.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The new name for the data source.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The new name for the data source.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The new name for the data source.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The new name for the data source.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The new name for the data source.</p>
*/
inline UpdateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The new name for the data source.</p>
*/
inline UpdateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The new name for the data source.</p>
*/
inline UpdateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The new description for the data source.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The new description for the data source.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The new description for the data source.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The new description for the data source.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The new description for the data source.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The new description for the data source.</p>
*/
inline UpdateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The new description for the data source.</p>
*/
inline UpdateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The new description for the data source.</p>
*/
inline UpdateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The new data source type.</p>
*/
inline const DataSourceType& GetType() const{ return m_type; }
/**
* <p>The new data source type.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The new data source type.</p>
*/
inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The new data source type.</p>
*/
inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The new data source type.</p>
*/
inline UpdateDataSourceRequest& WithType(const DataSourceType& value) { SetType(value); return *this;}
/**
* <p>The new data source type.</p>
*/
inline UpdateDataSourceRequest& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The new service role ARN for the data source.</p>
*/
inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
/**
* <p>The new service role ARN for the data source.</p>
*/
inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
/**
* <p>The new service role ARN for the data source.</p>
*/
inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
/**
* <p>The new service role ARN for the data source.</p>
*/
inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); }
/**
* <p>The new service role ARN for the data source.</p>
*/
inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
/**
* <p>The new service role ARN for the data source.</p>
*/
inline UpdateDataSourceRequest& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;}
/**
* <p>The new service role ARN for the data source.</p>
*/
inline UpdateDataSourceRequest& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;}
/**
* <p>The new service role ARN for the data source.</p>
*/
inline UpdateDataSourceRequest& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
/**
* <p>The new Amazon DynamoDB configuration.</p>
*/
inline const DynamodbDataSourceConfig& GetDynamodbConfig() const{ return m_dynamodbConfig; }
/**
* <p>The new Amazon DynamoDB configuration.</p>
*/
inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; }
/**
* <p>The new Amazon DynamoDB configuration.</p>
*/
inline void SetDynamodbConfig(const DynamodbDataSourceConfig& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = value; }
/**
* <p>The new Amazon DynamoDB configuration.</p>
*/
inline void SetDynamodbConfig(DynamodbDataSourceConfig&& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = std::move(value); }
/**
* <p>The new Amazon DynamoDB configuration.</p>
*/
inline UpdateDataSourceRequest& WithDynamodbConfig(const DynamodbDataSourceConfig& value) { SetDynamodbConfig(value); return *this;}
/**
* <p>The new Amazon DynamoDB configuration.</p>
*/
inline UpdateDataSourceRequest& WithDynamodbConfig(DynamodbDataSourceConfig&& value) { SetDynamodbConfig(std::move(value)); return *this;}
/**
* <p>The new AWS Lambda configuration.</p>
*/
inline const LambdaDataSourceConfig& GetLambdaConfig() const{ return m_lambdaConfig; }
/**
* <p>The new AWS Lambda configuration.</p>
*/
inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; }
/**
* <p>The new AWS Lambda configuration.</p>
*/
inline void SetLambdaConfig(const LambdaDataSourceConfig& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = value; }
/**
* <p>The new AWS Lambda configuration.</p>
*/
inline void SetLambdaConfig(LambdaDataSourceConfig&& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = std::move(value); }
/**
* <p>The new AWS Lambda configuration.</p>
*/
inline UpdateDataSourceRequest& WithLambdaConfig(const LambdaDataSourceConfig& value) { SetLambdaConfig(value); return *this;}
/**
* <p>The new AWS Lambda configuration.</p>
*/
inline UpdateDataSourceRequest& WithLambdaConfig(LambdaDataSourceConfig&& value) { SetLambdaConfig(std::move(value)); return *this;}
/**
* <p>The new Elasticsearch Service configuration.</p>
*/
inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const{ return m_elasticsearchConfig; }
/**
* <p>The new Elasticsearch Service configuration.</p>
*/
inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; }
/**
* <p>The new Elasticsearch Service configuration.</p>
*/
inline void SetElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = value; }
/**
* <p>The new Elasticsearch Service configuration.</p>
*/
inline void SetElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = std::move(value); }
/**
* <p>The new Elasticsearch Service configuration.</p>
*/
inline UpdateDataSourceRequest& WithElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { SetElasticsearchConfig(value); return *this;}
/**
* <p>The new Elasticsearch Service configuration.</p>
*/
inline UpdateDataSourceRequest& WithElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { SetElasticsearchConfig(std::move(value)); return *this;}
/**
* <p>The new HTTP endpoint configuration.</p>
*/
inline const HttpDataSourceConfig& GetHttpConfig() const{ return m_httpConfig; }
/**
* <p>The new HTTP endpoint configuration.</p>
*/
inline bool HttpConfigHasBeenSet() const { return m_httpConfigHasBeenSet; }
/**
* <p>The new HTTP endpoint configuration.</p>
*/
inline void SetHttpConfig(const HttpDataSourceConfig& value) { m_httpConfigHasBeenSet = true; m_httpConfig = value; }
/**
* <p>The new HTTP endpoint configuration.</p>
*/
inline void SetHttpConfig(HttpDataSourceConfig&& value) { m_httpConfigHasBeenSet = true; m_httpConfig = std::move(value); }
/**
* <p>The new HTTP endpoint configuration.</p>
*/
inline UpdateDataSourceRequest& WithHttpConfig(const HttpDataSourceConfig& value) { SetHttpConfig(value); return *this;}
/**
* <p>The new HTTP endpoint configuration.</p>
*/
inline UpdateDataSourceRequest& WithHttpConfig(HttpDataSourceConfig&& value) { SetHttpConfig(std::move(value)); return *this;}
/**
* <p>The new relational database configuration.</p>
*/
inline const RelationalDatabaseDataSourceConfig& GetRelationalDatabaseConfig() const{ return m_relationalDatabaseConfig; }
/**
* <p>The new relational database configuration.</p>
*/
inline bool RelationalDatabaseConfigHasBeenSet() const { return m_relationalDatabaseConfigHasBeenSet; }
/**
* <p>The new relational database configuration.</p>
*/
inline void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = value; }
/**
* <p>The new relational database configuration.</p>
*/
inline void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = std::move(value); }
/**
* <p>The new relational database configuration.</p>
*/
inline UpdateDataSourceRequest& WithRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { SetRelationalDatabaseConfig(value); return *this;}
/**
* <p>The new relational database configuration.</p>
*/
inline UpdateDataSourceRequest& WithRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { SetRelationalDatabaseConfig(std::move(value)); return *this;}
private:
Aws::String m_apiId;
bool m_apiIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
DataSourceType m_type;
bool m_typeHasBeenSet;
Aws::String m_serviceRoleArn;
bool m_serviceRoleArnHasBeenSet;
DynamodbDataSourceConfig m_dynamodbConfig;
bool m_dynamodbConfigHasBeenSet;
LambdaDataSourceConfig m_lambdaConfig;
bool m_lambdaConfigHasBeenSet;
ElasticsearchDataSourceConfig m_elasticsearchConfig;
bool m_elasticsearchConfigHasBeenSet;
HttpDataSourceConfig m_httpConfig;
bool m_httpConfigHasBeenSet;
RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
bool m_relationalDatabaseConfigHasBeenSet;
};
} // namespace Model
} // namespace AppSync
} // namespace Aws