@Generated(value="OracleSDKGenerator", comments="API Version: 20240430") public final class CompartmentIdResourceFilter extends ResourceFilter
This is a resource filter for filtering resource based on compartment OCID.
Note: Objects should always be created or deserialized using the CompartmentIdResourceFilter.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 CompartmentIdResourceFilter.Builder
, which maintain a
set of all explicitly set fields called CompartmentIdResourceFilter.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 |
CompartmentIdResourceFilter.Builder |
ResourceFilter.Attribute
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CompartmentIdResourceFilter(String value,
Boolean shouldIncludeChildCompartments)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CompartmentIdResourceFilter.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getShouldIncludeChildCompartments()
This sets whether to include child compartments.
|
String |
getValue()
This is the compartment used for filtering.
|
int |
hashCode() |
CompartmentIdResourceFilter.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public CompartmentIdResourceFilter(String value, Boolean shouldIncludeChildCompartments)
public static CompartmentIdResourceFilter.Builder builder()
Create a new builder.
public CompartmentIdResourceFilter.Builder toBuilder()
public String getValue()
This is the compartment used for filtering.
public Boolean getShouldIncludeChildCompartments()
This sets whether to include child compartments.
public String toString()
toString
in class ResourceFilter
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class ResourceFilter
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ResourceFilter
public int hashCode()
hashCode
in class ResourceFilter
Copyright © 2016–2025. All rights reserved.