Class UpdateDataSourceRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.appsync.model.AppSyncRequest
-
- software.amazon.awssdk.services.appsync.model.UpdateDataSourceRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateDataSourceRequest.Builder,UpdateDataSourceRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateDataSourceRequest extends AppSyncRequest implements ToCopyableBuilder<UpdateDataSourceRequest.Builder,UpdateDataSourceRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateDataSourceRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapiId()The API ID.static UpdateDataSourceRequest.Builderbuilder()Stringdescription()The new description for the data source.DynamodbDataSourceConfigdynamodbConfig()The new Amazon DynamoDB configuration.ElasticsearchDataSourceConfigelasticsearchConfig()The new OpenSearch configuration.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EventBridgeDataSourceConfigeventBridgeConfig()The new Amazon EventBridge settings.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()HttpDataSourceConfighttpConfig()The new HTTP endpoint configuration.LambdaDataSourceConfiglambdaConfig()The new Lambda configuration.DataSourceLevelMetricsConfigmetricsConfig()Enables or disables enhanced data source metrics for specified data sources.StringmetricsConfigAsString()Enables or disables enhanced data source metrics for specified data sources.Stringname()The new name for the data source.OpenSearchServiceDataSourceConfigopenSearchServiceConfig()The new OpenSearch configuration.RelationalDatabaseDataSourceConfigrelationalDatabaseConfig()The new relational database configuration.List<SdkField<?>>sdkFields()static Class<? extends UpdateDataSourceRequest.Builder>serializableBuilderClass()StringserviceRoleArn()The new service role Amazon Resource Name (ARN) for the data source.UpdateDataSourceRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.DataSourceTypetype()The new data source type.StringtypeAsString()The new data source type.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
apiId
public final String apiId()
The API ID.
- Returns:
- The API ID.
-
name
public final String name()
The new name for the data source.
- Returns:
- The new name for the data source.
-
description
public final String description()
The new description for the data source.
- Returns:
- The new description for the data source.
-
type
public final DataSourceType type()
The new data source type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDataSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The new data source type.
- See Also:
DataSourceType
-
typeAsString
public final String typeAsString()
The new data source type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDataSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The new data source type.
- See Also:
DataSourceType
-
serviceRoleArn
public final String serviceRoleArn()
The new service role Amazon Resource Name (ARN) for the data source.
- Returns:
- The new service role Amazon Resource Name (ARN) for the data source.
-
dynamodbConfig
public final DynamodbDataSourceConfig dynamodbConfig()
The new Amazon DynamoDB configuration.
- Returns:
- The new Amazon DynamoDB configuration.
-
lambdaConfig
public final LambdaDataSourceConfig lambdaConfig()
The new Lambda configuration.
- Returns:
- The new Lambda configuration.
-
elasticsearchConfig
public final 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.
- Returns:
- 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.
-
openSearchServiceConfig
public final OpenSearchServiceDataSourceConfig openSearchServiceConfig()
The new OpenSearch configuration.
- Returns:
- The new OpenSearch configuration.
-
httpConfig
public final HttpDataSourceConfig httpConfig()
The new HTTP endpoint configuration.
- Returns:
- The new HTTP endpoint configuration.
-
relationalDatabaseConfig
public final RelationalDatabaseDataSourceConfig relationalDatabaseConfig()
The new relational database configuration.
- Returns:
- The new relational database configuration.
-
eventBridgeConfig
public final EventBridgeDataSourceConfig eventBridgeConfig()
The new Amazon EventBridge settings.
- Returns:
- The new Amazon EventBridge settings.
-
metricsConfig
public final DataSourceLevelMetricsConfig metricsConfig()
Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.If the service returns an enum value that is not available in the current SDK version,
metricsConfigwill returnDataSourceLevelMetricsConfig.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricsConfigAsString().- Returns:
- Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED. - See Also:
DataSourceLevelMetricsConfig
-
metricsConfigAsString
public final String metricsConfigAsString()
Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.If the service returns an enum value that is not available in the current SDK version,
metricsConfigwill returnDataSourceLevelMetricsConfig.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommetricsConfigAsString().- Returns:
- Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED. - See Also:
DataSourceLevelMetricsConfig
-
toBuilder
public UpdateDataSourceRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateDataSourceRequest.Builder,UpdateDataSourceRequest>- Specified by:
toBuilderin classAppSyncRequest
-
builder
public static UpdateDataSourceRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateDataSourceRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-