@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataSource extends Object implements Serializable, Cloneable, StructuredPojo
Describes a data source.
| Constructor and Description |
|---|
DataSource() |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
clone() |
boolean |
equals(Object obj) |
String |
getDataSourceArn()
The data source ARN.
|
String |
getDescription()
The description of the data source.
|
DynamodbDataSourceConfig |
getDynamodbConfig()
DynamoDB settings.
|
ElasticsearchDataSourceConfig |
getElasticsearchConfig()
Amazon Elasticsearch settings.
|
HttpDataSourceConfig |
getHttpConfig()
Http endpoint settings.
|
LambdaDataSourceConfig |
getLambdaConfig()
Lambda settings.
|
String |
getName()
The name of the data source.
|
String |
getServiceRoleArn()
The IAM service role ARN for the data source.
|
String |
getType()
The type of the data source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDataSourceArn(String dataSourceArn)
The data source ARN.
|
void |
setDescription(String description)
The description of the data source.
|
void |
setDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
DynamoDB settings.
|
void |
setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch settings.
|
void |
setHttpConfig(HttpDataSourceConfig httpConfig)
Http endpoint settings.
|
void |
setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
|
void |
setName(String name)
The name of the data source.
|
void |
setServiceRoleArn(String serviceRoleArn)
The IAM service role ARN for the data source.
|
void |
setType(String type)
The type of the data source.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DataSource |
withDataSourceArn(String dataSourceArn)
The data source ARN.
|
DataSource |
withDescription(String description)
The description of the data source.
|
DataSource |
withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
DynamoDB settings.
|
DataSource |
withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch settings.
|
DataSource |
withHttpConfig(HttpDataSourceConfig httpConfig)
Http endpoint settings.
|
DataSource |
withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
|
DataSource |
withName(String name)
The name of the data source.
|
DataSource |
withServiceRoleArn(String serviceRoleArn)
The IAM service role ARN for the data source.
|
DataSource |
withType(DataSourceType type)
The type of the data source.
|
DataSource |
withType(String type)
The type of the data source.
|
public void setDataSourceArn(String dataSourceArn)
The data source ARN.
dataSourceArn - The data source ARN.public String getDataSourceArn()
The data source ARN.
public DataSource withDataSourceArn(String dataSourceArn)
The data source ARN.
dataSourceArn - The data source ARN.public void setName(String name)
The name of the data source.
name - The name of the data source.public String getName()
The name of the data source.
public DataSource withName(String name)
The name of the data source.
name - The name of the data source.public void setDescription(String description)
The description of the data source.
description - The description of the data source.public String getDescription()
The description of the data source.
public DataSource withDescription(String description)
The description of the data source.
description - The description of the data source.public void setType(String type)
The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
type - The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
DataSourceTypepublic String getType()
The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
DataSourceTypepublic DataSource withType(String type)
The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
type - The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
DataSourceTypepublic DataSource withType(DataSourceType type)
The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
type - The type of the data source.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.
AWS_LAMBDA: The data source is an AWS Lambda function.
NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
HTTP: The data source is an HTTP endpoint.
DataSourceTypepublic void setServiceRoleArn(String serviceRoleArn)
The IAM service role ARN for the data source. The system assumes this role when accessing the data source.
serviceRoleArn - The IAM service role ARN for the data source. The system assumes this role when accessing the data source.public String getServiceRoleArn()
The IAM service role ARN for the data source. The system assumes this role when accessing the data source.
public DataSource withServiceRoleArn(String serviceRoleArn)
The IAM service role ARN for the data source. The system assumes this role when accessing the data source.
serviceRoleArn - The IAM service role ARN for the data source. The system assumes this role when accessing the data source.public void setDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
DynamoDB settings.
dynamodbConfig - DynamoDB settings.public DynamodbDataSourceConfig getDynamodbConfig()
DynamoDB settings.
public DataSource withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
DynamoDB settings.
dynamodbConfig - DynamoDB settings.public void setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
lambdaConfig - Lambda settings.public LambdaDataSourceConfig getLambdaConfig()
Lambda settings.
public DataSource withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
lambdaConfig - Lambda settings.public void setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch settings.
elasticsearchConfig - Amazon Elasticsearch settings.public ElasticsearchDataSourceConfig getElasticsearchConfig()
Amazon Elasticsearch settings.
public DataSource withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch settings.
elasticsearchConfig - Amazon Elasticsearch settings.public void setHttpConfig(HttpDataSourceConfig httpConfig)
Http endpoint settings.
httpConfig - Http endpoint settings.public HttpDataSourceConfig getHttpConfig()
Http endpoint settings.
public DataSource withHttpConfig(HttpDataSourceConfig httpConfig)
Http endpoint settings.
httpConfig - Http endpoint settings.public String toString()
toString in class ObjectObject.toString()public DataSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.