Class PatchMoveInstruction
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.psql.model.PatchInstruction
- 
- com.oracle.bmc.psql.model.PatchMoveInstruction
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20220915") 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 SummaryNested 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.psql.model.PatchInstructionPatchInstruction.Operation
 
- 
 - 
Constructor SummaryConstructors Constructor Description PatchMoveInstruction(String selection, String from, PatchMoveInstruction.Position position)Deprecated.
 - 
Method SummaryAll 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.psql.model.PatchInstructiongetSelection
 
- 
 
- 
- 
- 
Constructor Detail- 
PatchMoveInstruction@Deprecated public PatchMoveInstruction(String selection, String from, PatchMoveInstruction.Position position) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static PatchMoveInstruction.Builder builder() Create a new builder.
 - 
toBuilderpublic PatchMoveInstruction.Builder toBuilder() 
 - 
getFrompublic String getFrom() The selection that is to be moved, with the same format and semantics as selection.- Returns:
- the value
 
 - 
getPositionpublic 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
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- PatchInstruction
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- PatchInstruction
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- PatchInstruction
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- PatchInstruction
 
 
- 
 
-