Class PatchMoveInstruction
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.capacitymanagement.model.PatchInstruction
-
- com.oracle.bmc.capacitymanagement.model.PatchMoveInstruction
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20231107") public final class PatchMoveInstruction extends PatchInstructionAn operation that “puts” values from elsewhere in the target, functionally equivalent to a single add and then a remove.The first item of the selection is replaced, or created if the selection is empty. NOT_FOUND exceptions in the selection are handled by creating the implied containing structure. This operation fails if the from selection yields any exceptions, or if an item is moved to any of its descendants.
Note: Objects should always be created or deserialized using thePatchMoveInstruction.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of thePatchMoveInstruction.Builder, which maintain a set of all explicitly set fields calledPatchMoveInstruction.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPatchMoveInstruction.Builderstatic classPatchMoveInstruction.PositionWhere to insert the value in an array, relative to the first item in the selection.-
Nested classes/interfaces inherited from class com.oracle.bmc.capacitymanagement.model.PatchInstruction
PatchInstruction.Operation
-
-
Constructor Summary
Constructors Constructor Description PatchMoveInstruction(String selection, String from, PatchMoveInstruction.Position position)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatchMoveInstruction.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetFrom()The selection that is to be moved, with the same format and semantics as selection.PatchMoveInstruction.PositiongetPosition()Where to insert the value in an array, relative to the first item in the selection.inthashCode()PatchMoveInstruction.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.capacitymanagement.model.PatchInstruction
getSelection
-
-
-
-
Constructor Detail
-
PatchMoveInstruction
@Deprecated public PatchMoveInstruction(String selection, String from, PatchMoveInstruction.Position position)
Deprecated.
-
-
Method Detail
-
builder
public static PatchMoveInstruction.Builder builder()
Create a new builder.
-
toBuilder
public PatchMoveInstruction.Builder toBuilder()
-
getFrom
public String getFrom()
The selection that is to be moved, with the same format and semantics as selection.- Returns:
- the value
-
getPosition
public PatchMoveInstruction.Position getPosition()
Where to insert the value in an array, relative to the first item in the selection.If there is no such item, then “BEFORE” specifies insertion at the first position in an array and “AFTER” specifies insertion at the last position. If the first item in the selection is not the child of an array, then this field has no effect.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classPatchInstruction
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classPatchInstruction- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classPatchInstruction
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPatchInstruction
-
-