public enum AssetErrorReason extends Enum<AssetErrorReason>
Java class for AssetError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AssetError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNKNOWN"/>
<enumeration value="ASSET_TYPE_NOT_SUPPORTED"/>
<enumeration value="CANNOT_REMOVE_ASSET_WITH_REMOVED_STATUS"/>
<enumeration value="CANNOT_MODIFY_ASSET_NAME"/>
<enumeration value="DUPLICATE_ASSET"/>
<enumeration value="DUPLICATE_ASSET_NAME"/>
<enumeration value="ASSET_DATA_IS_MISSING"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ASSET_DATA_IS_MISSING
No asset type specific data are set.
|
ASSET_TYPE_NOT_SUPPORTED
The asset type is not supported by asset service.
|
CANNOT_MODIFY_ASSET_NAME
The asset has a name which is different from an existing duplicate that represents the same
content.
|
CANNOT_REMOVE_ASSET_WITH_REMOVED_STATUS
Cannot remove an asset with status REMOVED.
|
DUPLICATE_ASSET
The asset is duplicated across operations.
|
DUPLICATE_ASSET_NAME
The asset name is duplicated, either across operations, or with an existing asset.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static AssetErrorReason |
fromValue(String v) |
String |
value() |
static AssetErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssetErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssetErrorReason UNKNOWN
public static final AssetErrorReason ASSET_TYPE_NOT_SUPPORTED
public static final AssetErrorReason CANNOT_REMOVE_ASSET_WITH_REMOVED_STATUS
public static final AssetErrorReason CANNOT_MODIFY_ASSET_NAME
public static final AssetErrorReason DUPLICATE_ASSET
public static final AssetErrorReason DUPLICATE_ASSET_NAME
public static final AssetErrorReason ASSET_DATA_IS_MISSING
public static AssetErrorReason[] values()
for (AssetErrorReason c : AssetErrorReason.values()) System.out.println(c);
public static AssetErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static AssetErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.