Class DirectJDBCSource
- java.lang.Object
-
- software.amazon.awssdk.services.glue.model.DirectJDBCSource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DirectJDBCSource.Builder,DirectJDBCSource>
@Generated("software.amazon.awssdk:codegen") public final class DirectJDBCSource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DirectJDBCSource.Builder,DirectJDBCSource>
Specifies the direct JDBC source connection.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDirectJDBCSource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectJDBCSource.Builderbuilder()StringconnectionName()The connection name of the JDBC source.JDBCConnectionTypeconnectionType()The connection type of the JDBC source.StringconnectionTypeAsString()The connection type of the JDBC source.Stringdatabase()The database of the JDBC source connection.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasOutputSchemas()For responses, this returns true if the service returned a value for the OutputSchemas property.Stringname()The name of the JDBC source connection.List<GlueSchema>outputSchemas()Specifies the data schema for the direct JDBC source.StringredshiftTmpDir()The temp directory of the JDBC Redshift source.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DirectJDBCSource.Builder>serializableBuilderClass()Stringtable()The table of the JDBC source connection.DirectJDBCSource.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
name
public final String name()
The name of the JDBC source connection.
- Returns:
- The name of the JDBC source connection.
-
database
public final String database()
The database of the JDBC source connection.
- Returns:
- The database of the JDBC source connection.
-
table
public final String table()
The table of the JDBC source connection.
- Returns:
- The table of the JDBC source connection.
-
connectionName
public final String connectionName()
The connection name of the JDBC source.
- Returns:
- The connection name of the JDBC source.
-
connectionType
public final JDBCConnectionType connectionType()
The connection type of the JDBC source.
If the service returns an enum value that is not available in the current SDK version,
connectionTypewill returnJDBCConnectionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionTypeAsString().- Returns:
- The connection type of the JDBC source.
- See Also:
JDBCConnectionType
-
connectionTypeAsString
public final String connectionTypeAsString()
The connection type of the JDBC source.
If the service returns an enum value that is not available in the current SDK version,
connectionTypewill returnJDBCConnectionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionTypeAsString().- Returns:
- The connection type of the JDBC source.
- See Also:
JDBCConnectionType
-
redshiftTmpDir
public final String redshiftTmpDir()
The temp directory of the JDBC Redshift source.
- Returns:
- The temp directory of the JDBC Redshift source.
-
hasOutputSchemas
public final boolean hasOutputSchemas()
For responses, this returns true if the service returned a value for the OutputSchemas 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.
-
outputSchemas
public final List<GlueSchema> outputSchemas()
Specifies the data schema for the direct JDBC source.
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
hasOutputSchemas()method.- Returns:
- Specifies the data schema for the direct JDBC source.
-
toBuilder
public DirectJDBCSource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DirectJDBCSource.Builder,DirectJDBCSource>
-
builder
public static DirectJDBCSource.Builder builder()
-
serializableBuilderClass
public static Class<? extends DirectJDBCSource.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-