Class CreateDataSourceRequest
- 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.CreateDataSourceRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateDataSourceRequest extends AppSyncRequest implements ToCopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateDataSourceRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapiId()The API ID for the GraphQL API for theDataSource.static CreateDataSourceRequest.Builderbuilder()Stringdescription()A description of theDataSource.DynamodbDataSourceConfigdynamodbConfig()Amazon DynamoDB settings.ElasticsearchDataSourceConfigelasticsearchConfig()Amazon OpenSearch Service settings.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EventBridgeDataSourceConfigeventBridgeConfig()Amazon EventBridge settings.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()HttpDataSourceConfighttpConfig()HTTP endpoint settings.LambdaDataSourceConfiglambdaConfig()Lambda settings.Stringname()A user-supplied name for theDataSource.OpenSearchServiceDataSourceConfigopenSearchServiceConfig()Amazon OpenSearch Service settings.RelationalDatabaseDataSourceConfigrelationalDatabaseConfig()Relational database settings.List<SdkField<?>>sdkFields()static Class<? extends CreateDataSourceRequest.Builder>serializableBuilderClass()StringserviceRoleArn()The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source.CreateDataSourceRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.DataSourceTypetype()The type of theDataSource.StringtypeAsString()The type of theDataSource.-
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 for the GraphQL API for the
DataSource.- Returns:
- The API ID for the GraphQL API for the
DataSource.
-
name
public final String name()
A user-supplied name for the
DataSource.- Returns:
- A user-supplied name for the
DataSource.
-
description
public final String description()
A description of the
DataSource.- Returns:
- A description of the
DataSource.
-
type
public final DataSourceType type()
The type of the
DataSource.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 type of the
DataSource. - See Also:
DataSourceType
-
typeAsString
public final String typeAsString()
The type of the
DataSource.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 type of the
DataSource. - See Also:
DataSourceType
-
serviceRoleArn
public final 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.
- Returns:
- 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.
-
dynamodbConfig
public final DynamodbDataSourceConfig dynamodbConfig()
Amazon DynamoDB settings.
- Returns:
- Amazon DynamoDB settings.
-
lambdaConfig
public final LambdaDataSourceConfig lambdaConfig()
Lambda settings.
- Returns:
- Lambda settings.
-
elasticsearchConfig
public final 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.
- Returns:
- 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.
-
openSearchServiceConfig
public final OpenSearchServiceDataSourceConfig openSearchServiceConfig()
Amazon OpenSearch Service settings.
- Returns:
- Amazon OpenSearch Service settings.
-
httpConfig
public final HttpDataSourceConfig httpConfig()
HTTP endpoint settings.
- Returns:
- HTTP endpoint settings.
-
relationalDatabaseConfig
public final RelationalDatabaseDataSourceConfig relationalDatabaseConfig()
Relational database settings.
- Returns:
- Relational database settings.
-
eventBridgeConfig
public final EventBridgeDataSourceConfig eventBridgeConfig()
Amazon EventBridge settings.
- Returns:
- Amazon EventBridge settings.
-
toBuilder
public CreateDataSourceRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>- Specified by:
toBuilderin classAppSyncRequest
-
builder
public static CreateDataSourceRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateDataSourceRequest.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
-
-