@Generated(value="com.ibm.cos.v2:codegen") public final class InvalidObjectStateException extends S3Exception implements ToCopyableBuilder<InvalidObjectStateException.Builder,InvalidObjectStateException>
Object is archived and inaccessible until restored.
If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the S3 Glacier Deep
Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive
Access tier, before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this
operation returns an InvalidObjectState error. For information about restoring archived objects, see Restoring Archived Objects in the
Amazon S3 User Guide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InvalidObjectStateException.Builder |
| Modifier and Type | Method and Description |
|---|---|
IntelligentTieringAccessTier |
accessTier()
Returns the value of the AccessTier property for this object.
|
String |
accessTierAsString()
Returns the value of the AccessTier property for this object.
|
static InvalidObjectStateException.Builder |
builder() |
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends InvalidObjectStateException.Builder> |
serializableBuilderClass() |
StorageClass |
storageClass()
Returns the value of the StorageClass property for this object.
|
String |
storageClassAsString()
Returns the value of the StorageClass property for this object.
|
InvalidObjectStateException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException. |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingExceptionextendedRequestId, isRetryableException, requestId, statusCodecreate, numAttempts, rawMessage, retryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopyequalsBySdkFieldspublic InvalidObjectStateException.Builder toBuilder()
AwsServiceExceptionAwsServiceException.Builder initialized with the properties of this AwsServiceException.toBuilder in interface ToCopyableBuilder<InvalidObjectStateException.Builder,InvalidObjectStateException>toBuilder in class S3Exceptionpublic static InvalidObjectStateException.Builder builder()
public static Class<? extends InvalidObjectStateException.Builder> serializableBuilderClass()
public StorageClass storageClass()
If the service returns an enum value that is not available in the current SDK version, storageClass will
return StorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
storageClassAsString().
StorageClasspublic String storageClassAsString()
If the service returns an enum value that is not available in the current SDK version, storageClass will
return StorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
storageClassAsString().
StorageClasspublic IntelligentTieringAccessTier accessTier()
If the service returns an enum value that is not available in the current SDK version, accessTier will
return IntelligentTieringAccessTier.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from accessTierAsString().
IntelligentTieringAccessTierpublic String accessTierAsString()
If the service returns an enum value that is not available in the current SDK version, accessTier will
return IntelligentTieringAccessTier.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from accessTierAsString().
IntelligentTieringAccessTierpublic final List<SdkField<?>> sdkFields()
sdkFields in interface SdkPojosdkFields in class SdkServiceExceptionSdkField in this POJO. May be empty list but should never be null.public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojoCopyright © 2026. All rights reserved.