@Generated(value="software.amazon.awssdk:codegen") public final class StorageOptimizer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StorageOptimizer.Builder,StorageOptimizer>
A structure describing the configuration and details of a storage optimizer.
| Modifier and Type | Class and Description |
|---|---|
static interface |
StorageOptimizer.Builder |
| Modifier and Type | Method and Description |
|---|---|
static StorageOptimizer.Builder |
builder() |
Map<String,String> |
config()
A map of the storage optimizer configuration.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
errorMessage()
A message that contains information about any error (if present).
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasConfig()
For responses, this returns true if the service returned a value for the Config property.
|
int |
hashCode() |
String |
lastRunDetails()
When an acceleration result has an enabled status, contains the details of the last job run.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StorageOptimizer.Builder> |
serializableBuilderClass() |
OptimizerType |
storageOptimizerType()
The specific type of storage optimizer.
|
String |
storageOptimizerTypeAsString()
The specific type of storage optimizer.
|
StorageOptimizer.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
warnings()
A message that contains information about any warnings (if present).
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final OptimizerType storageOptimizerType()
The specific type of storage optimizer. The supported value is compaction.
If the service returns an enum value that is not available in the current SDK version,
storageOptimizerType will return OptimizerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from storageOptimizerTypeAsString().
compaction.OptimizerTypepublic final String storageOptimizerTypeAsString()
The specific type of storage optimizer. The supported value is compaction.
If the service returns an enum value that is not available in the current SDK version,
storageOptimizerType will return OptimizerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by
the service is available from storageOptimizerTypeAsString().
compaction.OptimizerTypepublic final boolean hasConfig()
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,String> config()
A map of the storage optimizer configuration. Currently contains only one key-value pair: is_enabled
indicates true or false for acceleration.
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 hasConfig() method.
is_enabled indicates true or false for acceleration.public final String errorMessage()
A message that contains information about any error (if present).
When an acceleration result has an enabled status, the error message is empty.
When an acceleration result has a disabled status, the message describes an error or simply indicates "disabled by the user".
When an acceleration result has an enabled status, the error message is empty.
When an acceleration result has a disabled status, the message describes an error or simply indicates "disabled by the user".
public final String warnings()
A message that contains information about any warnings (if present).
public final String lastRunDetails()
When an acceleration result has an enabled status, contains the details of the last job run.
public StorageOptimizer.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<StorageOptimizer.Builder,StorageOptimizer>public static StorageOptimizer.Builder builder()
public static Class<? extends StorageOptimizer.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.