Class CreateDataSourceResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.datazone.model.DataZoneResponse
-
- software.amazon.awssdk.services.datazone.model.CreateDataSourceResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateDataSourceResponse.Builder,CreateDataSourceResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateDataSourceResponse extends DataZoneResponse implements ToCopyableBuilder<CreateDataSourceResponse.Builder,CreateDataSourceResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateDataSourceResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FormOutput>assetFormsOutput()The metadata forms attached to the assets that this data source creates.static CreateDataSourceResponse.Builderbuilder()DataSourceConfigurationOutputconfiguration()Specifies the configuration of the data source.InstantcreatedAt()The timestamp of when the data source was created.Stringdescription()The description of the data source.StringdomainId()The ID of the Amazon DataZone domain in which the data source is created.EnableSettingenableSetting()Specifies whether the data source is enabled.StringenableSettingAsString()Specifies whether the data source is enabled.StringenvironmentId()The unique identifier of the Amazon DataZone environment to which the data source publishes assets.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)DataSourceErrorMessageerrorMessage()Specifies the error message that is returned if the operation cannot be successfully completed.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAssetFormsOutput()For responses, this returns true if the service returned a value for the AssetFormsOutput property.inthashCode()Stringid()The unique identifier of the data source.InstantlastRunAt()The timestamp that specifies when the data source was last run.DataSourceErrorMessagelastRunErrorMessage()Specifies the error message that is returned if the operation cannot be successfully completed.DataSourceRunStatuslastRunStatus()The status of the last run of this data source.StringlastRunStatusAsString()The status of the last run of this data source.Stringname()The name of the data source.StringprojectId()The ID of the Amazon DataZone project to which the data source is added.BooleanpublishOnImport()Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.RecommendationConfigurationrecommendation()Specifies whether the business name generation is to be enabled for this data source.ScheduleConfigurationschedule()The schedule of the data source runs.List<SdkField<?>>sdkFields()static Class<? extends CreateDataSourceResponse.Builder>serializableBuilderClass()DataSourceStatusstatus()The status of the data source.StringstatusAsString()The status of the data source.CreateDataSourceResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The type of the data source.InstantupdatedAt()The timestamp of when the data source was updated.-
Methods inherited from class software.amazon.awssdk.services.datazone.model.DataZoneResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
hasAssetFormsOutput
public final boolean hasAssetFormsOutput()
For responses, this returns true if the service returned a value for the AssetFormsOutput property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
assetFormsOutput
public final List<FormOutput> assetFormsOutput()
The metadata forms attached to the assets that this data source creates.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAssetFormsOutput()method.- Returns:
- The metadata forms attached to the assets that this data source creates.
-
configuration
public final DataSourceConfigurationOutput configuration()
Specifies the configuration of the data source. It can be set to either
glueRunConfigurationorredshiftRunConfiguration.- Returns:
- Specifies the configuration of the data source. It can be set to either
glueRunConfigurationorredshiftRunConfiguration.
-
createdAt
public final Instant createdAt()
The timestamp of when the data source was created.
- Returns:
- The timestamp of when the data source was created.
-
description
public final String description()
The description of the data source.
- Returns:
- The description of the data source.
-
domainId
public final String domainId()
The ID of the Amazon DataZone domain in which the data source is created.
- Returns:
- The ID of the Amazon DataZone domain in which the data source is created.
-
enableSetting
public final EnableSetting enableSetting()
Specifies whether the data source is enabled.
If the service returns an enum value that is not available in the current SDK version,
enableSettingwill returnEnableSetting.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenableSettingAsString().- Returns:
- Specifies whether the data source is enabled.
- See Also:
EnableSetting
-
enableSettingAsString
public final String enableSettingAsString()
Specifies whether the data source is enabled.
If the service returns an enum value that is not available in the current SDK version,
enableSettingwill returnEnableSetting.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenableSettingAsString().- Returns:
- Specifies whether the data source is enabled.
- See Also:
EnableSetting
-
environmentId
public final String environmentId()
The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
- Returns:
- The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
-
errorMessage
public final DataSourceErrorMessage errorMessage()
Specifies the error message that is returned if the operation cannot be successfully completed.
- Returns:
- Specifies the error message that is returned if the operation cannot be successfully completed.
-
id
public final String id()
The unique identifier of the data source.
- Returns:
- The unique identifier of the data source.
-
lastRunAt
public final Instant lastRunAt()
The timestamp that specifies when the data source was last run.
- Returns:
- The timestamp that specifies when the data source was last run.
-
lastRunErrorMessage
public final DataSourceErrorMessage lastRunErrorMessage()
Specifies the error message that is returned if the operation cannot be successfully completed.
- Returns:
- Specifies the error message that is returned if the operation cannot be successfully completed.
-
lastRunStatus
public final DataSourceRunStatus lastRunStatus()
The status of the last run of this data source.
If the service returns an enum value that is not available in the current SDK version,
lastRunStatuswill returnDataSourceRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlastRunStatusAsString().- Returns:
- The status of the last run of this data source.
- See Also:
DataSourceRunStatus
-
lastRunStatusAsString
public final String lastRunStatusAsString()
The status of the last run of this data source.
If the service returns an enum value that is not available in the current SDK version,
lastRunStatuswill returnDataSourceRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlastRunStatusAsString().- Returns:
- The status of the last run of this data source.
- See Also:
DataSourceRunStatus
-
name
public final String name()
The name of the data source.
- Returns:
- The name of the data source.
-
projectId
public final String projectId()
The ID of the Amazon DataZone project to which the data source is added.
- Returns:
- The ID of the Amazon DataZone project to which the data source is added.
-
publishOnImport
public final Boolean publishOnImport()
Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
- Returns:
- Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
-
recommendation
public final RecommendationConfiguration recommendation()
Specifies whether the business name generation is to be enabled for this data source.
- Returns:
- Specifies whether the business name generation is to be enabled for this data source.
-
schedule
public final ScheduleConfiguration schedule()
The schedule of the data source runs.
- Returns:
- The schedule of the data source runs.
-
status
public final DataSourceStatus status()
The status of the data source.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnDataSourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the data source.
- See Also:
DataSourceStatus
-
statusAsString
public final String statusAsString()
The status of the data source.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnDataSourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the data source.
- See Also:
DataSourceStatus
-
type
public final String type()
The type of the data source.
- Returns:
- The type of the data source.
-
updatedAt
public final Instant updatedAt()
The timestamp of when the data source was updated.
- Returns:
- The timestamp of when the data source was updated.
-
toBuilder
public CreateDataSourceResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateDataSourceResponse.Builder,CreateDataSourceResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateDataSourceResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateDataSourceResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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 classSdkResponse
-
-