Class PageRuleApi
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.page_rule_api.v1.PageRuleApi
 
 
- 
 public class PageRuleApi extends com.ibm.cloud.sdk.core.service.BaseServiceThis document describes CIS Pagerule API.- Version:
- v1
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Constructor SummaryConstructors Constructor Description PageRuleApi(String crn, String zoneId, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `PageRuleApi` client.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo>changePageRule(ChangePageRuleOptions changePageRuleOptions)Change page rule.com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo>createPageRule()Create page rule.com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo>createPageRule(CreatePageRuleOptions createPageRuleOptions)Create page rule.com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesDeleteResponse>deletePageRule(DeletePageRuleOptions deletePageRuleOptions)Delete page rule.StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo>getPageRule(GetPageRuleOptions getPageRuleOptions)Get page rule.StringgetZoneId()Gets the zoneId.com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseListAll>listPageRules()List page rules.com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseListAll>listPageRules(ListPageRulesOptions listPageRulesOptions)List page rules.static PageRuleApinewInstance(String crn, String zoneId)Class method which constructs an instance of the `PageRuleApi` client.static PageRuleApinewInstance(String crn, String zoneId, String serviceName)Class method which constructs an instance of the `PageRuleApi` client.voidsetCrn(String crn)Sets the crn.voidsetZoneId(String zoneId)Sets the zoneId.com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo>updatePageRule(UpdatePageRuleOptions updatePageRuleOptions)Update page rule.- 
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseServiceconfigureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_SERVICE_NAMEpublic static final String DEFAULT_SERVICE_NAME - See Also:
- Constant Field Values
 
 - 
DEFAULT_SERVICE_URLpublic static final String DEFAULT_SERVICE_URL - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PageRuleApipublic PageRuleApi(String crn, String zoneId, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `PageRuleApi` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- instance id.
- zoneId- zone id.
- serviceName- the service name to be used when configuring the client instance
- authenticator- the- Authenticatorinstance to be configured for this client
 
 
- 
 - 
Method Detail- 
newInstancepublic static PageRuleApi newInstance(String crn, String zoneId) Class method which constructs an instance of the `PageRuleApi` client. The default service name is used to configure the client instance.- Parameters:
- crn- instance id.
- zoneId- zone id.
- Returns:
- an instance of the `PageRuleApi` client using external configuration
 
 - 
newInstancepublic static PageRuleApi newInstance(String crn, String zoneId, String serviceName) Class method which constructs an instance of the `PageRuleApi` client. The specified service name is used to configure the client instance.- Parameters:
- crn- instance id.
- zoneId- zone id.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `PageRuleApi` client using external configuration
 
 - 
getCrnpublic String getCrn() Gets the crn. instance id.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
getZoneIdpublic String getZoneId() Gets the zoneId. zone id.- Returns:
- the zoneId
 
 - 
setZoneIdpublic void setZoneId(String zoneId) Sets the zoneId.- Parameters:
- zoneId- the new zoneId
 
 - 
getPageRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo> getPageRule(GetPageRuleOptions getPageRuleOptions) Get page rule. Get a page rule details.- Parameters:
- getPageRuleOptions- the- GetPageRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePageRulesResponseWithoutResultInfo
 
 - 
changePageRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo> changePageRule(ChangePageRuleOptions changePageRuleOptions) Change page rule. Change a page rule.- Parameters:
- changePageRuleOptions- the- ChangePageRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePageRulesResponseWithoutResultInfo
 
 - 
updatePageRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo> updatePageRule(UpdatePageRuleOptions updatePageRuleOptions) Update page rule. Replace a page rule. The final rule will exactly match the data passed with this request.- Parameters:
- updatePageRuleOptions- the- UpdatePageRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePageRulesResponseWithoutResultInfo
 
 - 
deletePageRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesDeleteResponse> deletePageRule(DeletePageRuleOptions deletePageRuleOptions) Delete page rule. Delete a page rule.- Parameters:
- deletePageRuleOptions- the- DeletePageRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePageRulesDeleteResponse
 
 - 
listPageRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseListAll> listPageRules(ListPageRulesOptions listPageRulesOptions) List page rules. List page rules.- Parameters:
- listPageRulesOptions- the- ListPageRulesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePageRulesResponseListAll
 
 - 
listPageRulespublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseListAll> listPageRules() List page rules. List page rules.- Returns:
- a ServiceCallwith a result of typePageRulesResponseListAll
 
 - 
createPageRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo> createPageRule(CreatePageRuleOptions createPageRuleOptions) Create page rule. Create a page rule.- Parameters:
- createPageRuleOptions- the- CreatePageRuleOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typePageRulesResponseWithoutResultInfo
 
 - 
createPageRulepublic com.ibm.cloud.sdk.core.http.ServiceCall<PageRulesResponseWithoutResultInfo> createPageRule() Create page rule. Create a page rule.- Returns:
- a ServiceCallwith a result of typePageRulesResponseWithoutResultInfo
 
 
- 
 
-