Class PackageVersionError
- java.lang.Object
-
- software.amazon.awssdk.services.codeartifact.model.PackageVersionError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PackageVersionError.Builder,PackageVersionError>
@Generated("software.amazon.awssdk:codegen") public final class PackageVersionError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PackageVersionError.Builder,PackageVersionError>
l An error associated with package.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePackageVersionError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PackageVersionError.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)PackageVersionErrorCodeerrorCode()The error code associated with the error.StringerrorCodeAsString()The error code associated with the error.StringerrorMessage()The error message associated with the error.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends PackageVersionError.Builder>serializableBuilderClass()PackageVersionError.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
-
errorCode
public final PackageVersionErrorCode errorCode()
The error code associated with the error. Valid error codes are:
-
ALREADY_EXISTS -
MISMATCHED_REVISION -
MISMATCHED_STATUS -
NOT_ALLOWED -
NOT_FOUND -
SKIPPED
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnPackageVersionErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- The error code associated with the error. Valid error codes are:
-
ALREADY_EXISTS -
MISMATCHED_REVISION -
MISMATCHED_STATUS -
NOT_ALLOWED -
NOT_FOUND -
SKIPPED
-
- See Also:
PackageVersionErrorCode
-
-
errorCodeAsString
public final String errorCodeAsString()
The error code associated with the error. Valid error codes are:
-
ALREADY_EXISTS -
MISMATCHED_REVISION -
MISMATCHED_STATUS -
NOT_ALLOWED -
NOT_FOUND -
SKIPPED
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnPackageVersionErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- The error code associated with the error. Valid error codes are:
-
ALREADY_EXISTS -
MISMATCHED_REVISION -
MISMATCHED_STATUS -
NOT_ALLOWED -
NOT_FOUND -
SKIPPED
-
- See Also:
PackageVersionErrorCode
-
-
errorMessage
public final String errorMessage()
The error message associated with the error.
- Returns:
- The error message associated with the error.
-
toBuilder
public PackageVersionError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PackageVersionError.Builder,PackageVersionError>
-
builder
public static PackageVersionError.Builder builder()
-
serializableBuilderClass
public static Class<? extends PackageVersionError.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.
-
-