@Generated(value="OracleSDKGenerator", comments="API Version: v1") public final class Operations extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Each patch operation object MUST have exactly one “op” member, whose value indicates the
operation to perform and MAY be one of “add”, “remove”, or “replace”. See Section
3.5.2 for details.
Note: Objects should always be created or deserialized using the Operations.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 the Operations.Builder
, which maintain a
set of all explicitly set fields called Operations.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
Operations.Builder |
static class |
Operations.Op
Defines the operation to be performed for this Patch.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Operations(Operations.Op op,
String path,
Object value)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Operations.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Operations.Op |
getOp()
Defines the operation to be performed for this Patch.
|
String |
getPath()
String containing an attribute path describing the target of the operation.
|
Object |
getValue()
The value could be either a simple value attribute e.g.
|
int |
hashCode() |
Operations.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"op","path","value"}) public Operations(Operations.Op op, String path, Object value)
public static Operations.Builder builder()
Create a new builder.
public Operations.Builder toBuilder()
public Operations.Op getOp()
Defines the operation to be performed for this Patch. If op=remove, value is not required.
public String getPath()
String containing an attribute path describing the target of the operation. The “path” attribute is OPTIONAL for “add” and “replace” and is REQUIRED for “remove” operations. See Section 3.5.2 for details
public Object getValue()
The value could be either a simple value attribute e.g. string or number OR complex like map of the attributes to be added or replaced OR multivalues complex attributes.q1
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.