Class SearchMonitoredResourcesDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.stackmonitoring.model.SearchMonitoredResourcesDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public final class SearchMonitoredResourcesDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe property search criteria for listing monitored resources.
Note: Objects should always be created or deserialized using theSearchMonitoredResourcesDetails.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 theSearchMonitoredResourcesDetails.Builder, which maintain a set of all explicitly set fields calledSearchMonitoredResourcesDetails.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 classSearchMonitoredResourcesDetails.Builderstatic classSearchMonitoredResourcesDetails.SortByThe field to sort by.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchMonitoredResourcesDetails.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCompartmentId()Compartment Identifier OCID.List<String>getCompartmentIds()Multiple compartment identifiers OCID.StringgetExternalId()External resource is any OCI resource identifier OCID which is not a Stack Monitoring service resource.StringgetHostName()A filter to return resources with host name match.StringgetHostNameContains()A filter to return resources with host name pattern.LicenseTypegetLicense()License edition of the monitored resource.ResourceLifecycleStategetLifecycleState()A filter to return resources with matching lifecycle state.List<ResourceLifecycleState>getLifecycleStates()Multiple lifecycle states filter.StringgetManagementAgentId()A filter to return resources with matching management agent id.StringgetName()A filter to return resources that match exact resource name.StringgetNameContains()A filter to return resources that match resource name pattern given.Map<String,String>getPropertyEquals()Criteria based on resource property.ResourceCategorygetResourceCategory()Resource category filter.StringgetResourceTimeZone()Time zone in the form of tz database canonical zone ID.SearchMonitoredResourcesDetails.SortBygetSortBy()The field to sort by.SortOrdergetSortOrder()The sort order to use, either ‘ASC’ or ‘DESC’.SourceTypegetSourceType()Source type filter.DategetTimeCreatedGreaterThanOrEqualTo()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).DategetTimeCreatedLessThan()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).DategetTimeUpdatedGreaterThanOrEqualTo()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).DategetTimeUpdatedLessThan()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).StringgetType()A filter to return resources that match resource type.inthashCode()SearchMonitoredResourcesDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
SearchMonitoredResourcesDetails
@Deprecated @ConstructorProperties({"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)
Deprecated.
-
-
Method Detail
-
builder
public static SearchMonitoredResourcesDetails.Builder builder()
Create a new builder.
-
toBuilder
public SearchMonitoredResourcesDetails.Builder toBuilder()
-
getCompartmentIds
public List<String> getCompartmentIds()
Multiple compartment identifiers OCID.- Returns:
- the value
-
getLifecycleStates
public List<ResourceLifecycleState> getLifecycleStates()
Multiple lifecycle states filter.- Returns:
- the value
-
getSourceType
public SourceType getSourceType()
Source type filter.- Returns:
- the value
-
getResourceCategory
public ResourceCategory getResourceCategory()
Resource category filter.- Returns:
- the value
-
getName
public String getName()
A filter to return resources that match exact resource name.- Returns:
- the value
-
getNameContains
public String getNameContains()
A filter to return resources that match resource name pattern given.The match is not case sensitive.
- Returns:
- the value
-
getType
public String getType()
A filter to return resources that match resource type.- Returns:
- the value
-
getHostName
public String getHostName()
A filter to return resources with host name match.- Returns:
- the value
-
getExternalId
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.
- Returns:
- the value
-
getHostNameContains
public String getHostNameContains()
A filter to return resources with host name pattern.- Returns:
- the value
-
getManagementAgentId
public String getManagementAgentId()
A filter to return resources with matching management agent id.- Returns:
- the value
-
getLifecycleState
public ResourceLifecycleState getLifecycleState()
A filter to return resources with matching lifecycle state.- Returns:
- the value
-
getLicense
public LicenseType getLicense()
License edition of the monitored resource.- Returns:
- the value
-
getTimeCreatedGreaterThanOrEqualTo
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
- Returns:
- the value
-
getTimeCreatedLessThan
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
- Returns:
- the value
-
getTimeUpdatedGreaterThanOrEqualTo
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
- Returns:
- the value
-
getTimeUpdatedLessThan
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
- Returns:
- the value
-
getResourceTimeZone
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
- Returns:
- the value
-
getSortOrder
public SortOrder getSortOrder()
The sort order to use, either ‘ASC’ or ‘DESC’.- Returns:
- the value
-
getSortBy
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.
- Returns:
- the value
-
getPropertyEquals
public Map<String,String> getPropertyEquals()
Criteria based on resource property.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-