Class SearchMonitoredResourcesDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.SearchMonitoredResourcesDetails.Builder
-
- Enclosing class:
- SearchMonitoredResourcesDetails
public static class SearchMonitoredResourcesDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchMonitoredResourcesDetails
build()
SearchMonitoredResourcesDetails.Builder
compartmentId(String compartmentId)
Compartment Identifier OCID.SearchMonitoredResourcesDetails.Builder
compartmentIds(List<String> compartmentIds)
Multiple compartment identifiers OCID.SearchMonitoredResourcesDetails.Builder
copy(SearchMonitoredResourcesDetails model)
SearchMonitoredResourcesDetails.Builder
externalId(String externalId)
External resource is any OCI resource identifier OCID which is not a Stack Monitoring service resource.SearchMonitoredResourcesDetails.Builder
hostName(String hostName)
A filter to return resources with host name match.SearchMonitoredResourcesDetails.Builder
hostNameContains(String hostNameContains)
A filter to return resources with host name pattern.SearchMonitoredResourcesDetails.Builder
license(LicenseType license)
License edition of the monitored resource.SearchMonitoredResourcesDetails.Builder
lifecycleState(ResourceLifecycleState lifecycleState)
A filter to return resources with matching lifecycle state.SearchMonitoredResourcesDetails.Builder
lifecycleStates(List<ResourceLifecycleState> lifecycleStates)
Multiple lifecycle states filter.SearchMonitoredResourcesDetails.Builder
managementAgentId(String managementAgentId)
A filter to return resources with matching management agent id.SearchMonitoredResourcesDetails.Builder
name(String name)
A filter to return resources that match exact resource name.SearchMonitoredResourcesDetails.Builder
nameContains(String nameContains)
A filter to return resources that match resource name pattern given.SearchMonitoredResourcesDetails.Builder
propertyEquals(Map<String,String> propertyEquals)
Criteria based on resource property.SearchMonitoredResourcesDetails.Builder
resourceCategory(ResourceCategory resourceCategory)
Resource category filter.SearchMonitoredResourcesDetails.Builder
resourceTimeZone(String resourceTimeZone)
Time zone in the form of tz database canonical zone ID.SearchMonitoredResourcesDetails.Builder
sortBy(SearchMonitoredResourcesDetails.SortBy sortBy)
The field to sort by.SearchMonitoredResourcesDetails.Builder
sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.SearchMonitoredResourcesDetails.Builder
sourceType(SourceType sourceType)
Source type filter.SearchMonitoredResourcesDetails.Builder
timeCreatedGreaterThanOrEqualTo(Date timeCreatedGreaterThanOrEqualTo)
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).SearchMonitoredResourcesDetails.Builder
timeCreatedLessThan(Date timeCreatedLessThan)
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).SearchMonitoredResourcesDetails.Builder
timeUpdatedGreaterThanOrEqualTo(Date timeUpdatedGreaterThanOrEqualTo)
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).SearchMonitoredResourcesDetails.Builder
timeUpdatedLessThan(Date timeUpdatedLessThan)
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).SearchMonitoredResourcesDetails.Builder
type(String type)
A filter to return resources that match resource type.
-
-
-
Method Detail
-
compartmentId
public SearchMonitoredResourcesDetails.Builder compartmentId(String compartmentId)
Compartment Identifier OCID.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
compartmentIds
public SearchMonitoredResourcesDetails.Builder compartmentIds(List<String> compartmentIds)
Multiple compartment identifiers OCID.- Parameters:
compartmentIds
- the value to set- Returns:
- this builder
-
lifecycleStates
public SearchMonitoredResourcesDetails.Builder lifecycleStates(List<ResourceLifecycleState> lifecycleStates)
Multiple lifecycle states filter.- Parameters:
lifecycleStates
- the value to set- Returns:
- this builder
-
sourceType
public SearchMonitoredResourcesDetails.Builder sourceType(SourceType sourceType)
Source type filter.- Parameters:
sourceType
- the value to set- Returns:
- this builder
-
resourceCategory
public SearchMonitoredResourcesDetails.Builder resourceCategory(ResourceCategory resourceCategory)
Resource category filter.- Parameters:
resourceCategory
- the value to set- Returns:
- this builder
-
name
public SearchMonitoredResourcesDetails.Builder name(String name)
A filter to return resources that match exact resource name.- Parameters:
name
- the value to set- Returns:
- this builder
-
nameContains
public SearchMonitoredResourcesDetails.Builder nameContains(String nameContains)
A filter to return resources that match resource name pattern given.The match is not case sensitive.
- Parameters:
nameContains
- the value to set- Returns:
- this builder
-
type
public SearchMonitoredResourcesDetails.Builder type(String type)
A filter to return resources that match resource type.- Parameters:
type
- the value to set- Returns:
- this builder
-
hostName
public SearchMonitoredResourcesDetails.Builder hostName(String hostName)
A filter to return resources with host name match.- Parameters:
hostName
- the value to set- Returns:
- this builder
-
externalId
public SearchMonitoredResourcesDetails.Builder externalId(String externalId)
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.
- Parameters:
externalId
- the value to set- Returns:
- this builder
-
hostNameContains
public SearchMonitoredResourcesDetails.Builder hostNameContains(String hostNameContains)
A filter to return resources with host name pattern.- Parameters:
hostNameContains
- the value to set- Returns:
- this builder
-
managementAgentId
public SearchMonitoredResourcesDetails.Builder managementAgentId(String managementAgentId)
A filter to return resources with matching management agent id.- Parameters:
managementAgentId
- the value to set- Returns:
- this builder
-
lifecycleState
public SearchMonitoredResourcesDetails.Builder lifecycleState(ResourceLifecycleState lifecycleState)
A filter to return resources with matching lifecycle state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
license
public SearchMonitoredResourcesDetails.Builder license(LicenseType license)
License edition of the monitored resource.- Parameters:
license
- the value to set- Returns:
- this builder
-
timeCreatedGreaterThanOrEqualTo
public SearchMonitoredResourcesDetails.Builder timeCreatedGreaterThanOrEqualTo(Date timeCreatedGreaterThanOrEqualTo)
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
- Parameters:
timeCreatedGreaterThanOrEqualTo
- the value to set- Returns:
- this builder
-
timeCreatedLessThan
public SearchMonitoredResourcesDetails.Builder timeCreatedLessThan(Date timeCreatedLessThan)
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
- Parameters:
timeCreatedLessThan
- the value to set- Returns:
- this builder
-
timeUpdatedGreaterThanOrEqualTo
public SearchMonitoredResourcesDetails.Builder timeUpdatedGreaterThanOrEqualTo(Date timeUpdatedGreaterThanOrEqualTo)
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
- Parameters:
timeUpdatedGreaterThanOrEqualTo
- the value to set- Returns:
- this builder
-
timeUpdatedLessThan
public SearchMonitoredResourcesDetails.Builder timeUpdatedLessThan(Date timeUpdatedLessThan)
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
- Parameters:
timeUpdatedLessThan
- the value to set- Returns:
- this builder
-
resourceTimeZone
public SearchMonitoredResourcesDetails.Builder resourceTimeZone(String resourceTimeZone)
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
- Parameters:
resourceTimeZone
- the value to set- Returns:
- this builder
-
sortOrder
public SearchMonitoredResourcesDetails.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.- Parameters:
sortOrder
- the value to set- Returns:
- this builder
-
sortBy
public SearchMonitoredResourcesDetails.Builder sortBy(SearchMonitoredResourcesDetails.SortBy sortBy)
The field to sort by.Only one sort order may be provided. Default order for timeCreated is descending. Default order for resources is ascending.
- Parameters:
sortBy
- the value to set- Returns:
- this builder
-
propertyEquals
public SearchMonitoredResourcesDetails.Builder propertyEquals(Map<String,String> propertyEquals)
Criteria based on resource property.- Parameters:
propertyEquals
- the value to set- Returns:
- this builder
-
build
public SearchMonitoredResourcesDetails build()
-
copy
public SearchMonitoredResourcesDetails.Builder copy(SearchMonitoredResourcesDetails model)
-
-