@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public final class SearchMonitoredResourcesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The property search criteria for listing monitored resources.
Note: Objects should always be created or deserialized using the SearchMonitoredResourcesDetails.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 SearchMonitoredResourcesDetails.Builder
, which maintain a
set of all explicitly set fields called SearchMonitoredResourcesDetails.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 |
SearchMonitoredResourcesDetails.Builder |
static class |
SearchMonitoredResourcesDetails.SortBy
The field to sort by.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SearchMonitoredResourcesDetails(String compartmentId,
List<String> compartmentIds,
List<ResourceLifecycleState> lifecycleStates,
SourceType sourceType,
ResourceCategory resourceCategory,
String name,
String nameContains,
String type,
String hostName,
String externalId,
String hostNameContains,
String managementAgentId,
ResourceLifecycleState lifecycleState,
LicenseType license,
Date timeCreatedGreaterThanOrEqualTo,
Date timeCreatedLessThan,
Date timeUpdatedGreaterThanOrEqualTo,
Date timeUpdatedLessThan,
String resourceTimeZone,
SortOrder sortOrder,
SearchMonitoredResourcesDetails.SortBy sortBy,
Map<String,String> propertyEquals)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SearchMonitoredResourcesDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
Compartment Identifier
OCID.
|
List<String> |
getCompartmentIds()
Multiple compartment identifiers
OCID.
|
String |
getExternalId()
External resource is any OCI resource identifier
OCID which is not a
Stack Monitoring service resource.
|
String |
getHostName()
A filter to return resources with host name match.
|
String |
getHostNameContains()
A filter to return resources with host name pattern.
|
LicenseType |
getLicense()
License edition of the monitored resource.
|
ResourceLifecycleState |
getLifecycleState()
A filter to return resources with matching lifecycle state.
|
List<ResourceLifecycleState> |
getLifecycleStates()
Multiple lifecycle states filter.
|
String |
getManagementAgentId()
A filter to return resources with matching management agent id.
|
String |
getName()
A filter to return resources that match exact resource name.
|
String |
getNameContains()
A filter to return resources that match resource name pattern given.
|
Map<String,String> |
getPropertyEquals()
Criteria based on resource property.
|
ResourceCategory |
getResourceCategory()
Resource category filter.
|
String |
getResourceTimeZone()
Time zone in the form of tz database canonical zone ID.
|
SearchMonitoredResourcesDetails.SortBy |
getSortBy()
The field to sort by.
|
SortOrder |
getSortOrder()
The sort order to use, either ‘ASC’ or ‘DESC’.
|
SourceType |
getSourceType()
Source type filter.
|
Date |
getTimeCreatedGreaterThanOrEqualTo()
Search for resources that were created within a specific date range, using this parameter to
specify the earliest creation date for the returned list (inclusive).
|
Date |
getTimeCreatedLessThan()
Search for resources that were created within a specific date range, using this parameter to
specify the latest creation date for the returned list (exclusive).
|
Date |
getTimeUpdatedGreaterThanOrEqualTo()
Search for resources that were updated within a specific date range, using this parameter to
specify the earliest update date for the returned list (inclusive).
|
Date |
getTimeUpdatedLessThan()
Search for resources that were updated within a specific date range, using this parameter to
specify the latest creation date for the returned list (exclusive).
|
String |
getType()
A filter to return resources that match resource type.
|
int |
hashCode() |
SearchMonitoredResourcesDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"compartmentId","compartmentIds","lifecycleStates","sourceType","resourceCategory","name","nameContains","type","hostName","externalId","hostNameContains","managementAgentId","lifecycleState","license","timeCreatedGreaterThanOrEqualTo","timeCreatedLessThan","timeUpdatedGreaterThanOrEqualTo","timeUpdatedLessThan","resourceTimeZone","sortOrder","sortBy","propertyEquals"}) public SearchMonitoredResourcesDetails(String compartmentId, List<String> compartmentIds, List<ResourceLifecycleState> lifecycleStates, SourceType sourceType, ResourceCategory resourceCategory, String name, String nameContains, String type, String hostName, String externalId, String hostNameContains, String managementAgentId, ResourceLifecycleState lifecycleState, LicenseType license, Date timeCreatedGreaterThanOrEqualTo, Date timeCreatedLessThan, Date timeUpdatedGreaterThanOrEqualTo, Date timeUpdatedLessThan, String resourceTimeZone, SortOrder sortOrder, SearchMonitoredResourcesDetails.SortBy sortBy, Map<String,String> propertyEquals)
public static SearchMonitoredResourcesDetails.Builder builder()
Create a new builder.
public SearchMonitoredResourcesDetails.Builder toBuilder()
public List<String> getCompartmentIds()
Multiple compartment identifiers OCID.
public List<ResourceLifecycleState> getLifecycleStates()
Multiple lifecycle states filter.
public SourceType getSourceType()
Source type filter.
public ResourceCategory getResourceCategory()
Resource category filter.
public String getName()
A filter to return resources that match exact resource name.
public String getNameContains()
A filter to return resources that match resource name pattern given. The match is not case sensitive.
public String getType()
A filter to return resources that match resource type.
public String getHostName()
A filter to return resources with host name match.
public String getExternalId()
External resource is any OCI resource identifier OCID which is not a Stack Monitoring service resource. Currently supports only following resource types - Container database, non-container database, pluggable database and OCI compute instance.
public String getHostNameContains()
A filter to return resources with host name pattern.
public String getManagementAgentId()
A filter to return resources with matching management agent id.
public ResourceLifecycleState getLifecycleState()
A filter to return resources with matching lifecycle state.
public LicenseType getLicense()
License edition of the monitored resource.
public Date getTimeCreatedGreaterThanOrEqualTo()
Search for resources that were created within a specific date range, using this parameter to
specify the earliest creation date for the returned list (inclusive). Specifying this
parameter without the corresponding timeCreatedLessThan
parameter will retrieve
resources created from the given timeCreatedGreaterThanOrEqualTo
to the current time,
in “YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC
3339.
*Example:** 2016-12-19T16:39:57.600Z
public Date getTimeCreatedLessThan()
Search for resources that were created within a specific date range, using this parameter to
specify the latest creation date for the returned list (exclusive). Specifying this parameter
without the corresponding timeCreatedGreaterThanOrEqualTo
parameter will retrieve all
resources created before the specified end date, in “YYYY-MM-ddThh:mmZ” format with a Z
offset, as defined by RFC 3339.
*Example:** 2016-12-19T16:39:57.600Z
public Date getTimeUpdatedGreaterThanOrEqualTo()
Search for resources that were updated within a specific date range, using this parameter to
specify the earliest update date for the returned list (inclusive). Specifying this parameter
without the corresponding timeUpdatedLessThan
parameter will retrieve resources
updated from the given timeUpdatedGreaterThanOrEqualTo
to the current time, in
“YYYY-MM-ddThh:mmZ” format with a Z offset, as defined by RFC
3339.
*Example:** 2016-12-19T16:39:57.600Z
public Date getTimeUpdatedLessThan()
Search for resources that were updated within a specific date range, using this parameter to
specify the latest creation date for the returned list (exclusive). Specifying this parameter
without the corresponding timeUpdatedGreaterThanOrEqualTo
parameter will retrieve all
resources updated before the specified end date, in “YYYY-MM-ddThh:mmZ” format with a Z
offset, as defined by RFC 3339.
*Example:** 2016-12-19T16:39:57.600Z
public String getResourceTimeZone()
Time zone in the form of tz database canonical zone ID. Specifies the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles
public SortOrder getSortOrder()
The sort order to use, either ‘ASC’ or ‘DESC’.
public SearchMonitoredResourcesDetails.SortBy getSortBy()
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for resources is ascending.
public Map<String,String> getPropertyEquals()
Criteria based on resource property.
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.