public final class SandboxUpdatePatchInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IS_IMMEDIATE
Property (with value "true") to indicate that affected sandboxes must be
updated immediately before they can be used again; otherwise the update
may be deferred until next sandbox refresh.
|
Constructor and Description |
---|
SandboxUpdatePatchInfo(java.lang.String patchId)
Constructs a
SandboxUpdatePatchInfo with only the ID of the
patch. |
SandboxUpdatePatchInfo(java.lang.String patchId,
boolean isImmediate)
Constructs a
SandboxUpdatePatchInfo and indicates whether the
sandboxes affected by this patch must be updated immediately before they
can be used again. |
SandboxUpdatePatchInfo(java.lang.String patchId,
java.util.Map<java.lang.String,java.lang.String> properties)
Constructs a
SandboxUpdatePatchInfo with the ID of the
patch and some properties. |
Modifier and Type | Method and Description |
---|---|
static SandboxUpdatePatchInfo |
fromXml(java.lang.String xml)
Parses the XML representation of an
PatchInfo object and
returns the object. |
java.lang.String |
getCanonicalPatchId()
Returns the patch ID in canonical form.
|
java.lang.String |
getPatchId()
Returns the ID of the patch, which is never
null . |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of a property.
|
boolean |
isImmediate()
Returns
true if this patch must be applied to affected
sandboxes immediately before they can be used again. |
static boolean |
isImmediate(java.lang.String canonicalPatchId)
Returns
true if the given canonical patch ID indicates that
the patch must be applied immediately. |
java.util.Set<java.lang.String> |
propertyNameSet()
Returns the names of all properties.
|
java.lang.String |
toString() |
java.lang.String |
toXml()
Returns the XML representation of this object.
|
public static final java.lang.String IS_IMMEDIATE
public SandboxUpdatePatchInfo(java.lang.String patchId)
SandboxUpdatePatchInfo
with only the ID of the
patch.patchId
- the ID of the patchjava.lang.IllegalArgumentException
- if the ID of the patch is nullpublic SandboxUpdatePatchInfo(java.lang.String patchId, boolean isImmediate)
SandboxUpdatePatchInfo
and indicates whether the
sandboxes affected by this patch must be updated immediately before they
can be used again.patchId
- the ID of the patchisImmediate
- if true
, the constructed object will have
one and only one property that is
IS_IMMEDIATE
with value "true"java.lang.IllegalArgumentException
- if the ID of the patch is nullpublic SandboxUpdatePatchInfo(java.lang.String patchId, java.util.Map<java.lang.String,java.lang.String> properties)
SandboxUpdatePatchInfo
with the ID of the
patch and some properties.patchId
- the ID of the patchproperties
- properties of the patch; null
if the patch
does not have any propertiesjava.lang.IllegalArgumentException
- if the ID of the patch is null or if
the ID is longer than the maximum length allowed, which
is usually 400 bytespublic java.lang.String getPatchId()
null
.public boolean isImmediate()
true
if this patch must be applied to affected
sandboxes immediately before they can be used again.true
if this patch must be applied to affected
sandboxes immediately before they can be used againpublic java.lang.String getCanonicalPatchId()
public static boolean isImmediate(java.lang.String canonicalPatchId)
true
if the given canonical patch ID indicates that
the patch must be applied immediately.canonicalPatchId
- the canonical patch ID to be checkedtrue
if the given canonical patch ID indicates that
the patch must be applied immediately; false
otherwise or if the given ID is nullpublic java.lang.String getProperty(java.lang.String name)
name
- the name of the propertynull
if the property
does not existpublic java.util.Set<java.lang.String> propertyNameSet()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXml()
fromXml(java.lang.String)
public static SandboxUpdatePatchInfo fromXml(java.lang.String xml)
PatchInfo
object and
returns the object.xml
- the XML representation of the object to be returnedtoXml()