/* * Copyright 2018-2023 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. */ package com.amazonaws.services.appsync.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes a data source. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DataSource implements Serializable, Cloneable, StructuredPojo { /** *

* The data source Amazon Resource Name (ARN). *

*/ private String dataSourceArn; /** *

* The name of the data source. *

*/ private String name; /** *

* The description of the data source. *

*/ private String description; /** *

* The type of the data source. *

* */ private String type; /** *

* The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system * assumes this role when accessing the data source. *

*/ private String serviceRoleArn; /** *

* DynamoDB settings. *

*/ private DynamodbDataSourceConfig dynamodbConfig; /** *

* Lambda settings. *

*/ private LambdaDataSourceConfig lambdaConfig; /** *

* Amazon OpenSearch Service settings. *

*/ private ElasticsearchDataSourceConfig elasticsearchConfig; /** *

* Amazon OpenSearch Service settings. *

*/ private OpenSearchServiceDataSourceConfig openSearchServiceConfig; /** *

* HTTP endpoint settings. *

*/ private HttpDataSourceConfig httpConfig; /** *

* Relational database settings. *

*/ private RelationalDatabaseDataSourceConfig relationalDatabaseConfig; /** *

* Amazon EventBridge settings. *

*/ private EventBridgeDataSourceConfig eventBridgeConfig; /** *

* The data source Amazon Resource Name (ARN). *

* * @param dataSourceArn * The data source Amazon Resource Name (ARN). */ public void setDataSourceArn(String dataSourceArn) { this.dataSourceArn = dataSourceArn; } /** *

* The data source Amazon Resource Name (ARN). *

* * @return The data source Amazon Resource Name (ARN). */ public String getDataSourceArn() { return this.dataSourceArn; } /** *

* The data source Amazon Resource Name (ARN). *

* * @param dataSourceArn * The data source Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withDataSourceArn(String dataSourceArn) { setDataSourceArn(dataSourceArn); return this; } /** *

* The name of the data source. *

* * @param name * The name of the data source. */ public void setName(String name) { this.name = name; } /** *

* The name of the data source. *

* * @return The name of the data source. */ public String getName() { return this.name; } /** *

* The name of the data source. *

* * @param name * The name of the data source. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withName(String name) { setName(name); return this; } /** *

* The description of the data source. *

* * @param description * The description of the data source. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the data source. *

* * @return The description of the data source. */ public String getDescription() { return this.description; } /** *

* The description of the data source. *

* * @param description * The description of the data source. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withDescription(String description) { setDescription(description); return this; } /** *

* The type of the data source. *

* * * @param type * The type of the data source.

*