Package com.oracle.bmc.recovery.requests
Class ListProtectionPoliciesRequest
- java.lang.Object
-
- com.oracle.bmc.requests.BmcRequest<Void>
-
- com.oracle.bmc.recovery.requests.ListProtectionPoliciesRequest
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20210216") public class ListProtectionPoliciesRequest extends BmcRequest<Void>Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/recovery/ListProtectionPoliciesExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListProtectionPoliciesRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListProtectionPoliciesRequest.Builderstatic classListProtectionPoliciesRequest.OwnerA filter to return only the policies that match the owner as ‘Customer’ or ‘Oracle’.static classListProtectionPoliciesRequest.SortByThe field to sort by.
-
Constructor Summary
Constructors Constructor Description ListProtectionPoliciesRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListProtectionPoliciesRequest.Builderbuilder()Return a new builder for this request object.booleanequals(Object o)Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.StringgetCompartmentId()The compartment OCID.StringgetDisplayName()A filter to return only resources that match the entire ‘displayname’ given.LifecycleStategetLifecycleState()A filter to return only resources their lifecycleState matches the given lifecycleState.IntegergetLimit()The maximum number of items to return.StringgetOpcRequestId()Unique identifier for the request.ListProtectionPoliciesRequest.OwnergetOwner()A filter to return only the policies that match the owner as ‘Customer’ or ‘Oracle’.StringgetPage()The page token representing the page at which to start retrieving results.StringgetProtectionPolicyId()The protection policy OCID.ListProtectionPoliciesRequest.SortBygetSortBy()The field to sort by.SortOrdergetSortOrder()The sort order to use, either ascending (ASC) or descending (DESC).inthashCode()Uses getInvocationCallback and getRetryConfiguration to generate a hash.ListProtectionPoliciesRequest.BuildertoBuilder()Return an instance ofListProtectionPoliciesRequest.Builderthat allows you to modify request properties.StringtoString()-
Methods inherited from class com.oracle.bmc.requests.BmcRequest
getBody$, getInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfiguration, supportsExpect100Continue
-
-
-
-
Method Detail
-
getCompartmentId
public String getCompartmentId()
The compartment OCID.
-
getLifecycleState
public LifecycleState getLifecycleState()
A filter to return only resources their lifecycleState matches the given lifecycleState.
-
getDisplayName
public String getDisplayName()
A filter to return only resources that match the entire ‘displayname’ given.
-
getProtectionPolicyId
public String getProtectionPolicyId()
The protection policy OCID.
-
getOwner
public ListProtectionPoliciesRequest.Owner getOwner()
A filter to return only the policies that match the owner as ‘Customer’ or ‘Oracle’.
-
getLimit
public Integer getLimit()
The maximum number of items to return.Specify a value greater than 4.
-
getPage
public String getPage()
The page token representing the page at which to start retrieving results.This is usually retrieved from a previous list call.
-
getSortOrder
public SortOrder getSortOrder()
The sort order to use, either ascending (ASC) or descending (DESC).Allowed values are: - ASC
- DESC
-
getSortBy
public ListProtectionPoliciesRequest.SortBy getSortBy()
The field to sort by.You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order. Allowed values are: - TIMECREATED - DISPLAYNAME
-
getOpcRequestId
public String getOpcRequestId()
Unique identifier for the request.
-
toBuilder
public ListProtectionPoliciesRequest.Builder toBuilder()
Return an instance ofListProtectionPoliciesRequest.Builderthat allows you to modify request properties.- Returns:
- instance of
ListProtectionPoliciesRequest.Builderthat allows you to modify request properties.
-
builder
public static ListProtectionPoliciesRequest.Builder builder()
Return a new builder for this request object.- Returns:
- builder for the request object
-
equals
public boolean equals(Object o)
Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.- Overrides:
equalsin classBmcRequest<Void>
-
hashCode
public int hashCode()
Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to generate a hash.- Overrides:
hashCodein classBmcRequest<Void>
-
-