@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 Amazon Resource Name (ARN).
|
String |
getDescription()
The description of the data source.
|
DynamodbDataSourceConfig |
getDynamodbConfig()
DynamoDB settings.
|
ElasticsearchDataSourceConfig |
getElasticsearchConfig()
Amazon OpenSearch Service settings.
|
EventBridgeDataSourceConfig |
getEventBridgeConfig()
Amazon EventBridge settings.
|
HttpDataSourceConfig |
getHttpConfig()
HTTP endpoint settings.
|
LambdaDataSourceConfig |
getLambdaConfig()
Lambda settings.
|
String |
getMetricsConfig()
Enables or disables enhanced data source metrics for specified data sources.
|
String |
getName()
The name of the data source.
|
OpenSearchServiceDataSourceConfig |
getOpenSearchServiceConfig()
Amazon OpenSearch Service settings.
|
RelationalDatabaseDataSourceConfig |
getRelationalDatabaseConfig()
Relational database settings.
|
String |
getServiceRoleArn()
The Identity and Access Management (IAM) service role Amazon Resource Name (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 Amazon Resource Name (ARN).
|
void |
setDescription(String description)
The description of the data source.
|
void |
setDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
DynamoDB settings.
|
void |
setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon OpenSearch Service settings.
|
void |
setEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
Amazon EventBridge settings.
|
void |
setHttpConfig(HttpDataSourceConfig httpConfig)
HTTP endpoint settings.
|
void |
setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
|
void |
setMetricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
void |
setName(String name)
The name of the data source.
|
void |
setOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
|
void |
setRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
|
void |
setServiceRoleArn(String serviceRoleArn)
The Identity and Access Management (IAM) service role Amazon Resource Name (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 Amazon Resource Name (ARN).
|
DataSource |
withDescription(String description)
The description of the data source.
|
DataSource |
withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
DynamoDB settings.
|
DataSource |
withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon OpenSearch Service settings.
|
DataSource |
withEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
Amazon EventBridge settings.
|
DataSource |
withHttpConfig(HttpDataSourceConfig httpConfig)
HTTP endpoint settings.
|
DataSource |
withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
|
DataSource |
withMetricsConfig(DataSourceLevelMetricsConfig metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
DataSource |
withMetricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
DataSource |
withName(String name)
The name of the data source.
|
DataSource |
withOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
|
DataSource |
withRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
|
DataSource |
withServiceRoleArn(String serviceRoleArn)
The Identity and Access Management (IAM) service role Amazon Resource Name (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 Amazon Resource Name (ARN).
dataSourceArn
- The data source Amazon Resource Name (ARN).public String getDataSourceArn()
The data source Amazon Resource Name (ARN).
public DataSource withDataSourceArn(String dataSourceArn)
The data source Amazon Resource Name (ARN).
dataSourceArn
- The data source Amazon Resource Name (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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription 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 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.
serviceRoleArn
- 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.public String getServiceRoleArn()
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.
public DataSource withServiceRoleArn(String serviceRoleArn)
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.
serviceRoleArn
- 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.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 OpenSearch Service settings.
elasticsearchConfig
- Amazon OpenSearch Service settings.public ElasticsearchDataSourceConfig getElasticsearchConfig()
Amazon OpenSearch Service settings.
public DataSource withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon OpenSearch Service settings.
elasticsearchConfig
- Amazon OpenSearch Service settings.public void setOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
openSearchServiceConfig
- Amazon OpenSearch Service settings.public OpenSearchServiceDataSourceConfig getOpenSearchServiceConfig()
Amazon OpenSearch Service settings.
public DataSource withOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
openSearchServiceConfig
- Amazon OpenSearch 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 void setEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
Amazon EventBridge settings.
eventBridgeConfig
- Amazon EventBridge settings.public EventBridgeDataSourceConfig getEventBridgeConfig()
Amazon EventBridge settings.
public DataSource withEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
Amazon EventBridge settings.
eventBridgeConfig
- Amazon EventBridge settings.public void setMetricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is set to
PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored. However, you
can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
metricsConfig
- Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is
set to PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored.
However, you can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
DataSourceLevelMetricsConfig
public String getMetricsConfig()
Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is set to
PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored. However, you
can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is
set to PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored.
However, you can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
DataSourceLevelMetricsConfig
public DataSource withMetricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is set to
PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored. However, you
can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
metricsConfig
- Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is
set to PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored.
However, you can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
DataSourceLevelMetricsConfig
public DataSource withMetricsConfig(DataSourceLevelMetricsConfig metricsConfig)
Enables or disables enhanced data source metrics for specified data sources. Note that metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is set to
PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored. However, you
can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
metricsConfig
- Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfig
won't be used unless the dataSourceLevelMetricsBehavior
value is
set to PER_DATA_SOURCE_METRICS
. If the dataSourceLevelMetricsBehavior
is set to
FULL_REQUEST_DATA_SOURCE_METRICS
instead, metricsConfig
will be ignored.
However, you can still set its value.
metricsConfig
can be ENABLED
or DISABLED
.
DataSourceLevelMetricsConfig
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.