/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appsync-2017-07-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppSync.Model
{
///
/// Container for the parameters to the UpdateDataSource operation.
/// Updates a DataSource
object.
///
public partial class UpdateDataSourceRequest : AmazonAppSyncRequest
{
private string _apiId;
private string _description;
private DynamodbDataSourceConfig _dynamodbConfig;
private ElasticsearchDataSourceConfig _elasticsearchConfig;
private EventBridgeDataSourceConfig _eventBridgeConfig;
private HttpDataSourceConfig _httpConfig;
private LambdaDataSourceConfig _lambdaConfig;
private string _name;
private OpenSearchServiceDataSourceConfig _openSearchServiceConfig;
private RelationalDatabaseDataSourceConfig _relationalDatabaseConfig;
private string _serviceRoleArn;
private DataSourceType _type;
///
/// Gets and sets the property ApiId.
///
/// The API ID.
///
///
[AWSProperty(Required=true)]
public string ApiId
{
get { return this._apiId; }
set { this._apiId = value; }
}
// Check to see if ApiId property is set
internal bool IsSetApiId()
{
return this._apiId != null;
}
///
/// Gets and sets the property Description.
///
/// The new description for the data source.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property DynamodbConfig.
///
/// The new Amazon DynamoDB configuration.
///
///
public DynamodbDataSourceConfig DynamodbConfig
{
get { return this._dynamodbConfig; }
set { this._dynamodbConfig = value; }
}
// Check to see if DynamodbConfig property is set
internal bool IsSetDynamodbConfig()
{
return this._dynamodbConfig != null;
}
///
/// Gets and sets the property ElasticsearchConfig.
///
/// The new OpenSearch configuration.
///
///
///
/// As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
/// configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig
/// to update an OpenSearch data source.
///
///
public ElasticsearchDataSourceConfig ElasticsearchConfig
{
get { return this._elasticsearchConfig; }
set { this._elasticsearchConfig = value; }
}
// Check to see if ElasticsearchConfig property is set
internal bool IsSetElasticsearchConfig()
{
return this._elasticsearchConfig != null;
}
///
/// Gets and sets the property EventBridgeConfig.
///
/// The new Amazon EventBridge settings.
///
///
public EventBridgeDataSourceConfig EventBridgeConfig
{
get { return this._eventBridgeConfig; }
set { this._eventBridgeConfig = value; }
}
// Check to see if EventBridgeConfig property is set
internal bool IsSetEventBridgeConfig()
{
return this._eventBridgeConfig != null;
}
///
/// Gets and sets the property HttpConfig.
///
/// The new HTTP endpoint configuration.
///
///
public HttpDataSourceConfig HttpConfig
{
get { return this._httpConfig; }
set { this._httpConfig = value; }
}
// Check to see if HttpConfig property is set
internal bool IsSetHttpConfig()
{
return this._httpConfig != null;
}
///
/// Gets and sets the property LambdaConfig.
///
/// The new Lambda configuration.
///
///
public LambdaDataSourceConfig LambdaConfig
{
get { return this._lambdaConfig; }
set { this._lambdaConfig = value; }
}
// Check to see if LambdaConfig property is set
internal bool IsSetLambdaConfig()
{
return this._lambdaConfig != null;
}
///
/// Gets and sets the property Name.
///
/// The new name for the data source.
///
///
[AWSProperty(Required=true, Min=1, Max=65536)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property OpenSearchServiceConfig.
///
/// The new OpenSearch configuration.
///
///
public OpenSearchServiceDataSourceConfig OpenSearchServiceConfig
{
get { return this._openSearchServiceConfig; }
set { this._openSearchServiceConfig = value; }
}
// Check to see if OpenSearchServiceConfig property is set
internal bool IsSetOpenSearchServiceConfig()
{
return this._openSearchServiceConfig != null;
}
///
/// Gets and sets the property RelationalDatabaseConfig.
///
/// The new relational database configuration.
///
///
public RelationalDatabaseDataSourceConfig RelationalDatabaseConfig
{
get { return this._relationalDatabaseConfig; }
set { this._relationalDatabaseConfig = value; }
}
// Check to see if RelationalDatabaseConfig property is set
internal bool IsSetRelationalDatabaseConfig()
{
return this._relationalDatabaseConfig != null;
}
///
/// Gets and sets the property ServiceRoleArn.
///
/// The new service role Amazon Resource Name (ARN) for the data source.
///
///
public string ServiceRoleArn
{
get { return this._serviceRoleArn; }
set { this._serviceRoleArn = value; }
}
// Check to see if ServiceRoleArn property is set
internal bool IsSetServiceRoleArn()
{
return this._serviceRoleArn != null;
}
///
/// Gets and sets the property Type.
///
/// The new data source type.
///
///
[AWSProperty(Required=true)]
public DataSourceType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}