@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateDataSourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateDataSourceRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateDataSourceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getApiId()
The API ID.
|
String |
getDescription()
The new description for the data source.
|
DynamodbDataSourceConfig |
getDynamodbConfig()
The new Amazon DynamoDB configuration.
|
ElasticsearchDataSourceConfig |
getElasticsearchConfig()
The new OpenSearch configuration.
|
EventBridgeDataSourceConfig |
getEventBridgeConfig()
The new Amazon EventBridge settings.
|
HttpDataSourceConfig |
getHttpConfig()
The new HTTP endpoint configuration.
|
LambdaDataSourceConfig |
getLambdaConfig()
The new Lambda configuration.
|
String |
getMetricsConfig()
Enables or disables enhanced data source metrics for specified data sources.
|
String |
getName()
The new name for the data source.
|
OpenSearchServiceDataSourceConfig |
getOpenSearchServiceConfig()
The new OpenSearch configuration.
|
RelationalDatabaseDataSourceConfig |
getRelationalDatabaseConfig()
The new relational database configuration.
|
String |
getServiceRoleArn()
The new service role Amazon Resource Name (ARN) for the data source.
|
String |
getType()
The new data source type.
|
int |
hashCode() |
void |
setApiId(String apiId)
The API ID.
|
void |
setDescription(String description)
The new description for the data source.
|
void |
setDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
The new Amazon DynamoDB configuration.
|
void |
setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
The new OpenSearch configuration.
|
void |
setEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
The new Amazon EventBridge settings.
|
void |
setHttpConfig(HttpDataSourceConfig httpConfig)
The new HTTP endpoint configuration.
|
void |
setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
The new Lambda configuration.
|
void |
setMetricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
void |
setName(String name)
The new name for the data source.
|
void |
setOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
The new OpenSearch configuration.
|
void |
setRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
The new relational database configuration.
|
void |
setServiceRoleArn(String serviceRoleArn)
The new service role Amazon Resource Name (ARN) for the data source.
|
void |
setType(String type)
The new data source type.
|
String |
toString()
Returns a string representation of this object.
|
UpdateDataSourceRequest |
withApiId(String apiId)
The API ID.
|
UpdateDataSourceRequest |
withDescription(String description)
The new description for the data source.
|
UpdateDataSourceRequest |
withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
The new Amazon DynamoDB configuration.
|
UpdateDataSourceRequest |
withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
The new OpenSearch configuration.
|
UpdateDataSourceRequest |
withEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
The new Amazon EventBridge settings.
|
UpdateDataSourceRequest |
withHttpConfig(HttpDataSourceConfig httpConfig)
The new HTTP endpoint configuration.
|
UpdateDataSourceRequest |
withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
The new Lambda configuration.
|
UpdateDataSourceRequest |
withMetricsConfig(DataSourceLevelMetricsConfig metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
UpdateDataSourceRequest |
withMetricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources.
|
UpdateDataSourceRequest |
withName(String name)
The new name for the data source.
|
UpdateDataSourceRequest |
withOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
The new OpenSearch configuration.
|
UpdateDataSourceRequest |
withRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
The new relational database configuration.
|
UpdateDataSourceRequest |
withServiceRoleArn(String serviceRoleArn)
The new service role Amazon Resource Name (ARN) for the data source.
|
UpdateDataSourceRequest |
withType(DataSourceType type)
The new data source type.
|
UpdateDataSourceRequest |
withType(String type)
The new data source type.
|
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.
apiId
- The API ID.public String getApiId()
The API ID.
public UpdateDataSourceRequest withApiId(String apiId)
The API ID.
apiId
- The API ID.public void setName(String name)
The new name for the data source.
name
- The new name for the data source.public String getName()
The new name for the data source.
public UpdateDataSourceRequest withName(String name)
The new name for the data source.
name
- The new name for the data source.public void setDescription(String description)
The new description for the data source.
description
- The new description for the data source.public String getDescription()
The new description for the data source.
public UpdateDataSourceRequest withDescription(String description)
The new description for the data source.
description
- The new description for the data source.public void setType(String type)
The new data source type.
type
- The new data source type.DataSourceType
public String getType()
The new data source type.
DataSourceType
public UpdateDataSourceRequest withType(String type)
The new data source type.
type
- The new data source type.DataSourceType
public UpdateDataSourceRequest withType(DataSourceType type)
The new data source type.
type
- The new data source type.DataSourceType
public void setServiceRoleArn(String serviceRoleArn)
The new service role Amazon Resource Name (ARN) for the data source.
serviceRoleArn
- The new service role Amazon Resource Name (ARN) for the data source.public String getServiceRoleArn()
The new service role Amazon Resource Name (ARN) for the data source.
public UpdateDataSourceRequest withServiceRoleArn(String serviceRoleArn)
The new service role Amazon Resource Name (ARN) for the data source.
serviceRoleArn
- The new service role Amazon Resource Name (ARN) for the data source.public void setDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
The new Amazon DynamoDB configuration.
dynamodbConfig
- The new Amazon DynamoDB configuration.public DynamodbDataSourceConfig getDynamodbConfig()
The new Amazon DynamoDB configuration.
public UpdateDataSourceRequest withDynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
The new Amazon DynamoDB configuration.
dynamodbConfig
- The new Amazon DynamoDB configuration.public void setLambdaConfig(LambdaDataSourceConfig lambdaConfig)
The new Lambda configuration.
lambdaConfig
- The new Lambda configuration.public LambdaDataSourceConfig getLambdaConfig()
The new Lambda configuration.
public UpdateDataSourceRequest withLambdaConfig(LambdaDataSourceConfig lambdaConfig)
The new Lambda configuration.
lambdaConfig
- The new Lambda configuration.public void setElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
elasticsearchConfig
- The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
public ElasticsearchDataSourceConfig getElasticsearchConfig()
The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
public UpdateDataSourceRequest withElasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
elasticsearchConfig
- The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
public void setOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
The new OpenSearch configuration.
openSearchServiceConfig
- The new OpenSearch configuration.public OpenSearchServiceDataSourceConfig getOpenSearchServiceConfig()
The new OpenSearch configuration.
public UpdateDataSourceRequest withOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
The new OpenSearch configuration.
openSearchServiceConfig
- The new OpenSearch configuration.public void setHttpConfig(HttpDataSourceConfig httpConfig)
The new HTTP endpoint configuration.
httpConfig
- The new HTTP endpoint configuration.public HttpDataSourceConfig getHttpConfig()
The new HTTP endpoint configuration.
public UpdateDataSourceRequest withHttpConfig(HttpDataSourceConfig httpConfig)
The new HTTP endpoint configuration.
httpConfig
- The new HTTP endpoint configuration.public void setRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
The new relational database configuration.
relationalDatabaseConfig
- The new relational database configuration.public RelationalDatabaseDataSourceConfig getRelationalDatabaseConfig()
The new relational database configuration.
public UpdateDataSourceRequest withRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
The new relational database configuration.
relationalDatabaseConfig
- The new relational database configuration.public void setEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
The new Amazon EventBridge settings.
eventBridgeConfig
- The new Amazon EventBridge settings.public EventBridgeDataSourceConfig getEventBridgeConfig()
The new Amazon EventBridge settings.
public UpdateDataSourceRequest withEventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
The new Amazon EventBridge settings.
eventBridgeConfig
- The new 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 UpdateDataSourceRequest 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 UpdateDataSourceRequest 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 UpdateDataSourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()