@Generated(value="software.amazon.awssdk:codegen") public final class UpdateApplicationRequest extends EmrServerlessRequest implements ToCopyableBuilder<UpdateApplicationRequest.Builder,UpdateApplicationRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateApplicationRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
applicationId()
The ID of the application to update.
|
Architecture |
architecture()
The CPU architecture of an application.
|
String |
architectureAsString()
The CPU architecture of an application.
|
AutoStartConfig |
autoStartConfiguration()
The configuration for an application to automatically start on job submission.
|
AutoStopConfig |
autoStopConfiguration()
The configuration for an application to automatically stop after a certain amount of time being idle.
|
static UpdateApplicationRequest.Builder |
builder() |
String |
clientToken()
The client idempotency token of the application to update.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInitialCapacity()
For responses, this returns true if the service returned a value for the InitialCapacity property.
|
boolean |
hasWorkerTypeSpecifications()
For responses, this returns true if the service returned a value for the WorkerTypeSpecifications property.
|
ImageConfigurationInput |
imageConfiguration()
The image configuration to be used for all worker types.
|
Map<String,InitialCapacityConfig> |
initialCapacity()
The capacity to initialize when the application is updated.
|
MaximumAllowedResources |
maximumCapacity()
The maximum capacity to allocate when the application is updated.
|
NetworkConfiguration |
networkConfiguration()
Returns the value of the NetworkConfiguration property for this object.
|
String |
releaseLabel()
The Amazon EMR release label for the application.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateApplicationRequest.Builder> |
serializableBuilderClass() |
UpdateApplicationRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Map<String,WorkerTypeSpecificationInput> |
workerTypeSpecifications()
The key-value pairs that specify worker type to
WorkerTypeSpecificationInput. |
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String applicationId()
The ID of the application to update.
public final String clientToken()
The client idempotency token of the application to update. Its value must be unique for each request.
public final boolean hasInitialCapacity()
isEmpty() 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.public final Map<String,InitialCapacityConfig> initialCapacity()
The capacity to initialize when the application is updated.
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 hasInitialCapacity() method.
public final MaximumAllowedResources maximumCapacity()
The maximum capacity to allocate when the application is updated. This is cumulative across all workers at any given point in time during the lifespan of the application. No new resources will be created once any one of the defined limits is hit.
public final AutoStartConfig autoStartConfiguration()
The configuration for an application to automatically start on job submission.
public final AutoStopConfig autoStopConfiguration()
The configuration for an application to automatically stop after a certain amount of time being idle.
public final NetworkConfiguration networkConfiguration()
public final Architecture architecture()
The CPU architecture of an application.
If the service returns an enum value that is not available in the current SDK version, architecture will
return Architecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
architectureAsString().
Architecturepublic final String architectureAsString()
The CPU architecture of an application.
If the service returns an enum value that is not available in the current SDK version, architecture will
return Architecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
architectureAsString().
Architecturepublic final ImageConfigurationInput imageConfiguration()
The image configuration to be used for all worker types. You can either set this parameter or
imageConfiguration for each worker type in WorkerTypeSpecificationInput.
imageConfiguration for each worker type in WorkerTypeSpecificationInput.public final boolean hasWorkerTypeSpecifications()
isEmpty() 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.public final Map<String,WorkerTypeSpecificationInput> workerTypeSpecifications()
The key-value pairs that specify worker type to WorkerTypeSpecificationInput. This parameter must
contain all valid worker types for a Spark or Hive application. Valid worker types include Driver
and Executor for Spark applications and HiveDriver and TezTask for Hive
applications. You can either set image details in this parameter for each worker type, or in
imageConfiguration for all worker types.
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 hasWorkerTypeSpecifications() method.
WorkerTypeSpecificationInput. This parameter
must contain all valid worker types for a Spark or Hive application. Valid worker types include
Driver and Executor for Spark applications and HiveDriver and
TezTask for Hive applications. You can either set image details in this parameter for each
worker type, or in imageConfiguration for all worker types.public final String releaseLabel()
The Amazon EMR release label for the application. You can change the release label to use a different release of Amazon EMR.
public UpdateApplicationRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateApplicationRequest.Builder,UpdateApplicationRequest>toBuilder in class EmrServerlessRequestpublic static UpdateApplicationRequest.Builder builder()
public static Class<? extends UpdateApplicationRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.