Class JobDriver
- java.lang.Object
-
- software.amazon.awssdk.services.emrserverless.model.JobDriver
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<JobDriver.Builder,JobDriver>
@Generated("software.amazon.awssdk:codegen") public final class JobDriver extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JobDriver.Builder,JobDriver>
The driver that the job runs on.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JobDriver.Builder
static class
JobDriver.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobDriver.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
static JobDriver
fromHive(Consumer<Hive.Builder> hive)
Create an instance of this class withhive()
initialized to the given value.static JobDriver
fromHive(Hive hive)
Create an instance of this class withhive()
initialized to the given value.static JobDriver
fromSparkSubmit(Consumer<SparkSubmit.Builder> sparkSubmit)
Create an instance of this class withsparkSubmit()
initialized to the given value.static JobDriver
fromSparkSubmit(SparkSubmit sparkSubmit)
Create an instance of this class withsparkSubmit()
initialized to the given value.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Hive
hive()
The job driver parameters specified for Hive.List<SdkField<?>>
sdkFields()
static Class<? extends JobDriver.Builder>
serializableBuilderClass()
SparkSubmit
sparkSubmit()
The job driver parameters specified for Spark.JobDriver.Builder
toBuilder()
String
toString()
Returns a string representation of this object.JobDriver.Type
type()
Retrieve an enum value representing which member of this object is populated.-
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
-
sparkSubmit
public final SparkSubmit sparkSubmit()
The job driver parameters specified for Spark.
- Returns:
- The job driver parameters specified for Spark.
-
hive
public final Hive hive()
The job driver parameters specified for Hive.
- Returns:
- The job driver parameters specified for Hive.
-
toBuilder
public JobDriver.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<JobDriver.Builder,JobDriver>
-
builder
public static JobDriver.Builder builder()
-
serializableBuilderClass
public static Class<? extends JobDriver.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
fromSparkSubmit
public static JobDriver fromSparkSubmit(SparkSubmit sparkSubmit)
Create an instance of this class withsparkSubmit()
initialized to the given value.The job driver parameters specified for Spark.
- Parameters:
sparkSubmit
- The job driver parameters specified for Spark.
-
fromSparkSubmit
public static JobDriver fromSparkSubmit(Consumer<SparkSubmit.Builder> sparkSubmit)
Create an instance of this class withsparkSubmit()
initialized to the given value.The job driver parameters specified for Spark.
- Parameters:
sparkSubmit
- The job driver parameters specified for Spark.
-
fromHive
public static JobDriver fromHive(Hive hive)
Create an instance of this class withhive()
initialized to the given value.The job driver parameters specified for Hive.
- Parameters:
hive
- The job driver parameters specified for Hive.
-
fromHive
public static JobDriver fromHive(Consumer<Hive.Builder> hive)
Create an instance of this class withhive()
initialized to the given value.The job driver parameters specified for Hive.
- Parameters:
hive
- The job driver parameters specified for Hive.
-
type
public JobDriver.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beJobDriver.Type.UNKNOWN_TO_SDK_VERSION
if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beJobDriver.Type.UNKNOWN_TO_SDK_VERSION
if zero members are set, andnull
if more than one member is set.
-
-