@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()
Amazon DynamoDB settings.
|
ElasticsearchDataSourceConfig |
getElasticsearchConfig()
Amazon Elasticsearch Service settings.
|
HttpDataSourceConfig |
getHttpConfig()
HTTP endpoint settings.
|
LambdaDataSourceConfig |
getLambdaConfig()
AWS Lambda settings.
|
String |
getName()
The name of the data source.
|
RelationalDatabaseDataSourceConfig |
getRelationalDatabaseConfig()
Relational database settings.
|
String |
getServiceRoleArn()
The AWS 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)
Amazon DynamoDB settings.
|
void |
setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch Service settings.
|
void |
setHttpConfig(HttpDataSourceConfig httpConfig)
HTTP endpoint settings.
|
void |
setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
AWS Lambda settings.
|
void |
setName(String name)
The name of the data source.
|
void |
setRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
|
void |
setServiceRoleArn(String serviceRoleArn)
The AWS 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.
|
DataSource |
withDataSourceArn(String dataSourceArn)
The data source ARN.
|
DataSource |
withDescription(String description)
The description of the data source.
|
DataSource |
withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon DynamoDB settings.
|
DataSource |
withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch Service settings.
|
DataSource |
withHttpConfig(HttpDataSourceConfig httpConfig)
HTTP endpoint settings.
|
DataSource |
withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
AWS Lambda settings.
|
DataSource |
withName(String name)
The name of the data source.
|
DataSource |
withRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
|
DataSource |
withServiceRoleArn(String serviceRoleArn)
The AWS 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 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.
RELATIONAL_DATABASE: The data source is a relational database.
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 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.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType
public 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 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.
RELATIONAL_DATABASE: The data source is a relational database.
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 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.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType
public 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 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.
RELATIONAL_DATABASE: The data source is a relational database.
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 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.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType
public 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 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.
RELATIONAL_DATABASE: The data source is a relational database.
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 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.
RELATIONAL_DATABASE: The data source is a relational database.
DataSourceType
public void setServiceRoleArn(String serviceRoleArn)
The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.
serviceRoleArn
- The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data
source.public String getServiceRoleArn()
The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.
public DataSource withServiceRoleArn(String serviceRoleArn)
The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.
serviceRoleArn
- The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data
source.public void setDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon DynamoDB settings.
dynamodbConfig
- Amazon DynamoDB settings.public DynamodbDataSourceConfig getDynamodbConfig()
Amazon DynamoDB settings.
public DataSource withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon DynamoDB settings.
dynamodbConfig
- Amazon DynamoDB settings.public void setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
AWS Lambda settings.
lambdaConfig
- AWS Lambda settings.public LambdaDataSourceConfig getLambdaConfig()
AWS Lambda settings.
public DataSource withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
AWS Lambda settings.
lambdaConfig
- AWS Lambda settings.public void setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch Service settings.
elasticsearchConfig
- Amazon Elasticsearch Service settings.public ElasticsearchDataSourceConfig getElasticsearchConfig()
Amazon Elasticsearch Service settings.
public DataSource withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon Elasticsearch Service settings.
elasticsearchConfig
- Amazon Elasticsearch Service 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 void setRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
relationalDatabaseConfig
- Relational database settings.public RelationalDatabaseDataSourceConfig getRelationalDatabaseConfig()
Relational database settings.
public DataSource withRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
relationalDatabaseConfig
- Relational database settings.public String toString()
toString
in class Object
Object.toString()
public DataSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.