public class NotAllowedInCurrentState extends Error implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
NotAllowedInCurrentState exception indicates that the requested
method is not allowed with a resource or service in its current state. This
could be because the method is performing a configuration change that is not
allowed in the current state or because method itself is not allowed in the
current state.
Examples:
Counterexamples:
ResourceBusy exception would be used instead. | Modifier and Type | Class and Description |
|---|---|
static class |
NotAllowedInCurrentState.Builder
Builder class for
NotAllowedInCurrentState. |
Error.Type__dynamicStructureFields| Modifier | Constructor and Description |
|---|---|
|
NotAllowedInCurrentState()
Default constructor.
|
|
NotAllowedInCurrentState(java.util.List<LocalizableMessage> messages,
com.vmware.vapi.bindings.Structure data)
This constructor is provided for backwards compatibility purposes only.
|
protected |
NotAllowedInCurrentState(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
protected |
NotAllowedInCurrentState(com.vmware.vapi.data.StructValue __dynamicStructureFields,
Error.Type errorType) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.ErrorType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.ErrorType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static NotAllowedInCurrentState |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static NotAllowedInCurrentState |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage() |
int |
hashCode() |
getData, getErrorType, getMessages, setData, setMessagesaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotAllowedInCurrentState(java.util.List<LocalizableMessage> messages, com.vmware.vapi.bindings.Structure data)
public NotAllowedInCurrentState()
protected NotAllowedInCurrentState(com.vmware.vapi.data.StructValue __dynamicStructureFields)
protected NotAllowedInCurrentState(com.vmware.vapi.data.StructValue __dynamicStructureFields,
Error.Type errorType)
public com.vmware.vapi.bindings.type.ErrorType _getType()
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue in interface com.vmware.vapi.bindings.Structure_getDataValue in class Errorprotected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
_updateDataValue in class Errorpublic void _validate()
public java.lang.String getMessage()
getMessage in class Errorpublic boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf in interface com.vmware.vapi.bindings.Structure_hasTypeNameOf in class Errorpublic <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo in interface com.vmware.vapi.bindings.Structure_convertTo in class Errorpublic void _setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField in interface com.vmware.vapi.bindings.StaticStructure_setDynamicField in class Errorpublic com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField in interface com.vmware.vapi.bindings.StaticStructure_getDynamicField in class Errorpublic java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructure_getDynamicFieldNames in class Errorpublic static com.vmware.vapi.bindings.type.ErrorType _getClassType()
ErrorType instance representing the static bindings
type for this Error.public java.lang.String _getCanonicalName()
_getCanonicalName in interface com.vmware.vapi.bindings.Structure_getCanonicalName in class Errorpublic static java.lang.String _getCanonicalTypeName()
_getCanonicalName().public static NotAllowedInCurrentState _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue - the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructTypepublic static NotAllowedInCurrentState _newInstance2(com.vmware.vapi.data.StructValue structValue)