@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDataSourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateDataSourceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDataSourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getApiId()
The API ID for the GraphQL API for the
DataSource . |
String |
getDescription()
A description of the
DataSource . |
DynamodbDataSourceConfig |
getDynamodbConfig()
Amazon 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()
A user-supplied name for the
DataSource . |
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
DataSource . |
int |
hashCode() |
void |
setApiId(String apiId)
The API ID for the GraphQL API for the
DataSource . |
void |
setDescription(String description)
A description of the
DataSource . |
void |
setDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon 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)
A user-supplied name for the
DataSource . |
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
DataSource . |
String |
toString()
Returns a string representation of this object.
|
CreateDataSourceRequest |
withApiId(String apiId)
The API ID for the GraphQL API for the
DataSource . |
CreateDataSourceRequest |
withDescription(String description)
A description of the
DataSource . |
CreateDataSourceRequest |
withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon DynamoDB settings.
|
CreateDataSourceRequest |
withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon OpenSearch Service settings.
|
CreateDataSourceRequest |
withEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
Amazon EventBridge settings.
|
CreateDataSourceRequest |
withHttpConfig(HttpDataSourceConfig httpConfig)
HTTP endpoint settings.
|
CreateDataSourceRequest |
withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
|
CreateDataSourceRequest |
withMetricsConfig(DataSourceLevelMetricsConfig metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
CreateDataSourceRequest |
withMetricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
CreateDataSourceRequest |
withName(String name)
A user-supplied name for the
DataSource . |
CreateDataSourceRequest |
withOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
|
CreateDataSourceRequest |
withRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
|
CreateDataSourceRequest |
withServiceRoleArn(String serviceRoleArn)
The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source.
|
CreateDataSourceRequest |
withType(DataSourceType type)
The type of the
DataSource . |
CreateDataSourceRequest |
withType(String type)
The type of the
DataSource . |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setApiId(String apiId)
The API ID for the GraphQL API for the DataSource
.
apiId
- The API ID for the GraphQL API for the DataSource
.public String getApiId()
The API ID for the GraphQL API for the DataSource
.
DataSource
.public CreateDataSourceRequest withApiId(String apiId)
The API ID for the GraphQL API for the DataSource
.
apiId
- The API ID for the GraphQL API for the DataSource
.public void setName(String name)
A user-supplied name for the DataSource
.
name
- A user-supplied name for the DataSource
.public String getName()
A user-supplied name for the DataSource
.
DataSource
.public CreateDataSourceRequest withName(String name)
A user-supplied name for the DataSource
.
name
- A user-supplied name for the DataSource
.public void setDescription(String description)
A description of the DataSource
.
description
- A description of the DataSource
.public String getDescription()
A description of the DataSource
.
DataSource
.public CreateDataSourceRequest withDescription(String description)
A description of the DataSource
.
description
- A description of the DataSource
.public void setType(String type)
The type of the DataSource
.
type
- The type of the DataSource
.DataSourceType
public String getType()
The type of the DataSource
.
DataSource
.DataSourceType
public CreateDataSourceRequest withType(String type)
The type of the DataSource
.
type
- The type of the DataSource
.DataSourceType
public CreateDataSourceRequest withType(DataSourceType type)
The type of the DataSource
.
type
- The type of the DataSource
.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 CreateDataSourceRequest 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)
Amazon DynamoDB settings.
dynamodbConfig
- Amazon DynamoDB settings.public DynamodbDataSourceConfig getDynamodbConfig()
Amazon DynamoDB settings.
public CreateDataSourceRequest withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon DynamoDB settings.
dynamodbConfig
- Amazon DynamoDB settings.public void setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
lambdaConfig
- Lambda settings.public LambdaDataSourceConfig getLambdaConfig()
Lambda settings.
public CreateDataSourceRequest withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
lambdaConfig
- Lambda settings.public void setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
elasticsearchConfig
- Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
public ElasticsearchDataSourceConfig getElasticsearchConfig()
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
public CreateDataSourceRequest withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
elasticsearchConfig
- Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
public void setOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
openSearchServiceConfig
- Amazon OpenSearch Service settings.public OpenSearchServiceDataSourceConfig getOpenSearchServiceConfig()
Amazon OpenSearch Service settings.
public CreateDataSourceRequest 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 CreateDataSourceRequest 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 CreateDataSourceRequest 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 CreateDataSourceRequest 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 CreateDataSourceRequest 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 CreateDataSourceRequest 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 CreateDataSourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()