Class ListManagedInstancesRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.requests.ListManagedInstancesRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<ListManagedInstancesRequest,Void>
- Enclosing class:
- ListManagedInstancesRequest
public static class ListManagedInstancesRequest.Builder extends Object implements BmcRequest.Builder<ListManagedInstancesRequest,Void>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListManagedInstancesRequest.Builder
advisoryName(String singularValue)
Singular setter.ListManagedInstancesRequest.Builder
advisoryName(List<String> advisoryName)
The assigned erratum name.ListManagedInstancesRequest.Builder
agentVersion(String agentVersion)
A filter to return only managed instances with the specified version of osmh-agent running.ListManagedInstancesRequest.Builder
archType(ArchType singularValue)
Singular setter.ListManagedInstancesRequest.Builder
archType(List<ArchType> archType)
A filter to return only instances whose architecture type matches the given architecture.ListManagedInstancesRequest
build()
Build the instance of ListManagedInstancesRequest as configured by this builderListManagedInstancesRequest
buildWithoutInvocationCallback()
Build the instance of ListManagedInstancesRequest as configured by this builderListManagedInstancesRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the resources to list.ListManagedInstancesRequest.Builder
copy(ListManagedInstancesRequest o)
Copy method to populate the builder with values from the given instance.ListManagedInstancesRequest.Builder
displayName(String singularValue)
Singular setter.ListManagedInstancesRequest.Builder
displayName(List<String> displayName)
A filter to return resources that match the given display names.ListManagedInstancesRequest.Builder
displayNameContains(String displayNameContains)
A filter to return resources that may partially match the given display name.ListManagedInstancesRequest.Builder
group(String group)
A filter to return only managed instances that are attached to the specified group.ListManagedInstancesRequest.Builder
groupNotEqualTo(String groupNotEqualTo)
A filter to return only managed instances that are NOT attached to the specified group.ListManagedInstancesRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.ListManagedInstancesRequest.Builder
isAttachedToGroupOrLifecycleStage(Boolean isAttachedToGroupOrLifecycleStage)
A filter to return only managed instances that are attached to the specified group or lifecycle environment.ListManagedInstancesRequest.Builder
isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether to list only resources managed by the Autonomous Linux service.ListManagedInstancesRequest.Builder
isManagementStation(Boolean isManagementStation)
A filter to return only managed instances that are acting as management stations.ListManagedInstancesRequest.Builder
isProfileAttached(Boolean isProfileAttached)
A filter to return only managed instances with a registration profile attached.ListManagedInstancesRequest.Builder
isRebootRequired(Boolean isRebootRequired)
A filter to return only managed instances that require a reboot to install updates.ListManagedInstancesRequest.Builder
lifecycleEnvironment(String lifecycleEnvironment)
A filter to return only managed instances in a specific lifecycle environment.ListManagedInstancesRequest.Builder
lifecycleEnvironmentNotEqualTo(String lifecycleEnvironmentNotEqualTo)
A filter to return only managed instances that aren’t in a specific lifecycle environment.ListManagedInstancesRequest.Builder
lifecycleStage(String lifecycleStage)
A filter to return only managed instances that are associated with the specified lifecycle environment.ListManagedInstancesRequest.Builder
lifecycleStageNotEqualTo(String lifecycleStageNotEqualTo)
A filter to return only managed instances that are NOT associated with the specified lifecycle environment.ListManagedInstancesRequest.Builder
limit(Integer limit)
For list pagination.ListManagedInstancesRequest.Builder
location(ManagedInstanceLocation singularValue)
Singular setter.ListManagedInstancesRequest.Builder
location(List<ManagedInstanceLocation> location)
A filter to return only resources whose location matches the given value.ListManagedInstancesRequest.Builder
locationNotEqualTo(ManagedInstanceLocation singularValue)
Singular setter.ListManagedInstancesRequest.Builder
locationNotEqualTo(List<ManagedInstanceLocation> locationNotEqualTo)
A filter to return only resources whose location does not match the given value.ListManagedInstancesRequest.Builder
managedInstanceId(String managedInstanceId)
The OCID of the managed instance.ListManagedInstancesRequest.Builder
managementStation(String singularValue)
Singular setter.ListManagedInstancesRequest.Builder
managementStation(List<String> managementStation)
A filter to return resources that are associated with the specified management station OCIDs.ListManagedInstancesRequest.Builder
managementStationNotEqualTo(String singularValue)
Singular setter.ListManagedInstancesRequest.Builder
managementStationNotEqualTo(List<String> managementStationNotEqualTo)
A filter to return resources that aren’t associated with the specified management station OCIDs.ListManagedInstancesRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.ListManagedInstancesRequest.Builder
osFamily(OsFamily singularValue)
Singular setter.ListManagedInstancesRequest.Builder
osFamily(List<OsFamily> osFamily)
A filter to return only resources that match the given operating system family.ListManagedInstancesRequest.Builder
page(String page)
For list pagination.ListManagedInstancesRequest.Builder
profile(String singularValue)
Singular setter.ListManagedInstancesRequest.Builder
profile(List<String> profile)
A multi filter to return only managed instances that match the given profile ids.ListManagedInstancesRequest.Builder
profileNotEqualTo(String singularValue)
Singular setter.ListManagedInstancesRequest.Builder
profileNotEqualTo(List<String> profileNotEqualTo)
A multi filter to return only managed instances that don’t contain the given profile OCIDs.ListManagedInstancesRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.ListManagedInstancesRequest.Builder
softwareSourceId(String softwareSourceId)
The OCID of the software source.ListManagedInstancesRequest.Builder
sortBy(ListManagedInstancesRequest.SortBy sortBy)
The field to sort by.ListManagedInstancesRequest.Builder
sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.ListManagedInstancesRequest.Builder
status(ManagedInstanceStatus singularValue)
Singular setter.ListManagedInstancesRequest.Builder
status(List<ManagedInstanceStatus> status)
A filter to return only managed instances whose status matches the status provided.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.requests.BmcRequest.Builder
body$
-
-
-
-
Method Detail
-
compartmentId
public ListManagedInstancesRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the resources to list.This filter returns only resources contained within the specified compartment.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
displayName
public ListManagedInstancesRequest.Builder displayName(List<String> displayName)
A filter to return resources that match the given display names.- Parameters:
displayName
- the value to set- Returns:
- this builder instance
-
displayName
public ListManagedInstancesRequest.Builder displayName(String singularValue)
Singular setter.A filter to return resources that match the given display names.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
displayNameContains
public ListManagedInstancesRequest.Builder displayNameContains(String displayNameContains)
A filter to return resources that may partially match the given display name.- Parameters:
displayNameContains
- the value to set- Returns:
- this builder instance
-
managedInstanceId
public ListManagedInstancesRequest.Builder managedInstanceId(String managedInstanceId)
The OCID of the managed instance.This filter returns resources associated with this managed instance.
- Parameters:
managedInstanceId
- the value to set- Returns:
- this builder instance
-
status
public ListManagedInstancesRequest.Builder status(List<ManagedInstanceStatus> status)
A filter to return only managed instances whose status matches the status provided.- Parameters:
status
- the value to set- Returns:
- this builder instance
-
status
public ListManagedInstancesRequest.Builder status(ManagedInstanceStatus singularValue)
Singular setter.A filter to return only managed instances whose status matches the status provided.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
archType
public ListManagedInstancesRequest.Builder archType(List<ArchType> archType)
A filter to return only instances whose architecture type matches the given architecture.- Parameters:
archType
- the value to set- Returns:
- this builder instance
-
archType
public ListManagedInstancesRequest.Builder archType(ArchType singularValue)
Singular setter.A filter to return only instances whose architecture type matches the given architecture.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
osFamily
public ListManagedInstancesRequest.Builder osFamily(List<OsFamily> osFamily)
A filter to return only resources that match the given operating system family.- Parameters:
osFamily
- the value to set- Returns:
- this builder instance
-
osFamily
public ListManagedInstancesRequest.Builder osFamily(OsFamily singularValue)
Singular setter.A filter to return only resources that match the given operating system family.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
isManagementStation
public ListManagedInstancesRequest.Builder isManagementStation(Boolean isManagementStation)
A filter to return only managed instances that are acting as management stations.- Parameters:
isManagementStation
- the value to set- Returns:
- this builder instance
-
group
public ListManagedInstancesRequest.Builder group(String group)
A filter to return only managed instances that are attached to the specified group.- Parameters:
group
- the value to set- Returns:
- this builder instance
-
groupNotEqualTo
public ListManagedInstancesRequest.Builder groupNotEqualTo(String groupNotEqualTo)
A filter to return only managed instances that are NOT attached to the specified group.- Parameters:
groupNotEqualTo
- the value to set- Returns:
- this builder instance
-
lifecycleStage
public ListManagedInstancesRequest.Builder lifecycleStage(String lifecycleStage)
A filter to return only managed instances that are associated with the specified lifecycle environment.- Parameters:
lifecycleStage
- the value to set- Returns:
- this builder instance
-
lifecycleStageNotEqualTo
public ListManagedInstancesRequest.Builder lifecycleStageNotEqualTo(String lifecycleStageNotEqualTo)
A filter to return only managed instances that are NOT associated with the specified lifecycle environment.- Parameters:
lifecycleStageNotEqualTo
- the value to set- Returns:
- this builder instance
-
isAttachedToGroupOrLifecycleStage
public ListManagedInstancesRequest.Builder isAttachedToGroupOrLifecycleStage(Boolean isAttachedToGroupOrLifecycleStage)
A filter to return only managed instances that are attached to the specified group or lifecycle environment.- Parameters:
isAttachedToGroupOrLifecycleStage
- the value to set- Returns:
- this builder instance
-
softwareSourceId
public ListManagedInstancesRequest.Builder softwareSourceId(String softwareSourceId)
The OCID of the software source.This filter returns resources associated with this software source.
- Parameters:
softwareSourceId
- the value to set- Returns:
- this builder instance
-
advisoryName
public ListManagedInstancesRequest.Builder advisoryName(List<String> advisoryName)
The assigned erratum name.It’s unique and not changeable.
Example: ELSA-2020-5804
- Parameters:
advisoryName
- the value to set- Returns:
- this builder instance
-
advisoryName
public ListManagedInstancesRequest.Builder advisoryName(String singularValue)
Singular setter.The assigned erratum name. It’s unique and not changeable.
Example: ELSA-2020-5804
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
lifecycleEnvironment
public ListManagedInstancesRequest.Builder lifecycleEnvironment(String lifecycleEnvironment)
A filter to return only managed instances in a specific lifecycle environment.- Parameters:
lifecycleEnvironment
- the value to set- Returns:
- this builder instance
-
lifecycleEnvironmentNotEqualTo
public ListManagedInstancesRequest.Builder lifecycleEnvironmentNotEqualTo(String lifecycleEnvironmentNotEqualTo)
A filter to return only managed instances that aren’t in a specific lifecycle environment.- Parameters:
lifecycleEnvironmentNotEqualTo
- the value to set- Returns:
- this builder instance
-
location
public ListManagedInstancesRequest.Builder location(List<ManagedInstanceLocation> location)
A filter to return only resources whose location matches the given value.- Parameters:
location
- the value to set- Returns:
- this builder instance
-
location
public ListManagedInstancesRequest.Builder location(ManagedInstanceLocation singularValue)
Singular setter.A filter to return only resources whose location matches the given value.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
locationNotEqualTo
public ListManagedInstancesRequest.Builder locationNotEqualTo(List<ManagedInstanceLocation> locationNotEqualTo)
A filter to return only resources whose location does not match the given value.- Parameters:
locationNotEqualTo
- the value to set- Returns:
- this builder instance
-
locationNotEqualTo
public ListManagedInstancesRequest.Builder locationNotEqualTo(ManagedInstanceLocation singularValue)
Singular setter.A filter to return only resources whose location does not match the given value.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
profile
public ListManagedInstancesRequest.Builder profile(List<String> profile)
A multi filter to return only managed instances that match the given profile ids.- Parameters:
profile
- the value to set- Returns:
- this builder instance
-
profile
public ListManagedInstancesRequest.Builder profile(String singularValue)
Singular setter.A multi filter to return only managed instances that match the given profile ids.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
profileNotEqualTo
public ListManagedInstancesRequest.Builder profileNotEqualTo(List<String> profileNotEqualTo)
A multi filter to return only managed instances that don’t contain the given profile OCIDs.- Parameters:
profileNotEqualTo
- the value to set- Returns:
- this builder instance
-
profileNotEqualTo
public ListManagedInstancesRequest.Builder profileNotEqualTo(String singularValue)
Singular setter.A multi filter to return only managed instances that don’t contain the given profile OCIDs.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
isProfileAttached
public ListManagedInstancesRequest.Builder isProfileAttached(Boolean isProfileAttached)
A filter to return only managed instances with a registration profile attached.- Parameters:
isProfileAttached
- the value to set- Returns:
- this builder instance
-
isManagedByAutonomousLinux
public ListManagedInstancesRequest.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether to list only resources managed by the Autonomous Linux service.- Parameters:
isManagedByAutonomousLinux
- the value to set- Returns:
- this builder instance
-
agentVersion
public ListManagedInstancesRequest.Builder agentVersion(String agentVersion)
A filter to return only managed instances with the specified version of osmh-agent running.- Parameters:
agentVersion
- the value to set- Returns:
- this builder instance
-
managementStation
public ListManagedInstancesRequest.Builder managementStation(List<String> managementStation)
A filter to return resources that are associated with the specified management station OCIDs.- Parameters:
managementStation
- the value to set- Returns:
- this builder instance
-
managementStation
public ListManagedInstancesRequest.Builder managementStation(String singularValue)
Singular setter.A filter to return resources that are associated with the specified management station OCIDs.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
managementStationNotEqualTo
public ListManagedInstancesRequest.Builder managementStationNotEqualTo(List<String> managementStationNotEqualTo)
A filter to return resources that aren’t associated with the specified management station OCIDs.- Parameters:
managementStationNotEqualTo
- the value to set- Returns:
- this builder instance
-
managementStationNotEqualTo
public ListManagedInstancesRequest.Builder managementStationNotEqualTo(String singularValue)
Singular setter.A filter to return resources that aren’t associated with the specified management station OCIDs.
- Parameters:
singularValue
- the singular value to set- Returns:
- this builder instance
-
isRebootRequired
public ListManagedInstancesRequest.Builder isRebootRequired(Boolean isRebootRequired)
A filter to return only managed instances that require a reboot to install updates.- Parameters:
isRebootRequired
- the value to set- Returns:
- this builder instance
-
limit
public ListManagedInstancesRequest.Builder limit(Integer limit)
For list pagination.The maximum number of results per page, or items to return in a paginated “List” call. For important details about how pagination works, see List Pagination.
Example: 50
- Parameters:
limit
- the value to set- Returns:
- this builder instance
-
page
public ListManagedInstancesRequest.Builder page(String page)
For list pagination.The value of the opc-next-page response header from the previous “List” call. For important details about how pagination works, see List Pagination.
Example: 3
- Parameters:
page
- the value to set- Returns:
- this builder instance
-
sortOrder
public ListManagedInstancesRequest.Builder sortOrder(SortOrder sortOrder)
The sort order to use, either ‘ASC’ or ‘DESC’.- Parameters:
sortOrder
- the value to set- Returns:
- this builder instance
-
sortBy
public ListManagedInstancesRequest.Builder sortBy(ListManagedInstancesRequest.SortBy sortBy)
The field to sort by.Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
- Parameters:
sortBy
- the value to set- Returns:
- this builder instance
-
opcRequestId
public ListManagedInstancesRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public ListManagedInstancesRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public ListManagedInstancesRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public ListManagedInstancesRequest.Builder copy(ListManagedInstancesRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<ListManagedInstancesRequest,Void>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public ListManagedInstancesRequest build()
Build the instance of ListManagedInstancesRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<ListManagedInstancesRequest,Void>
- Returns:
- instance of ListManagedInstancesRequest
-
buildWithoutInvocationCallback
public ListManagedInstancesRequest buildWithoutInvocationCallback()
Build the instance of ListManagedInstancesRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of ListManagedInstancesRequest
-
-