Class Alerts
- java.lang.Object
- 
- com.ibm.cloud.sdk.core.service.BaseService
- 
- com.ibm.cloud.networking.alerts.v1.Alerts
 
 
- 
 public class Alerts extends com.ibm.cloud.sdk.core.service.BaseServiceCIS Alert Policies. API Version: 1.0.0
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp>createAlertPolicy()Create an alert policy.com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp>createAlertPolicy(CreateAlertPolicyOptions createAlertPolicyOptions)Create an alert policy.com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp>deleteAlertPolicy(DeleteAlertPolicyOptions deleteAlertPolicyOptions)Delete an alert policy.com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertPoliciesResp>getAlertPolicies()List alert policies.com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertPoliciesResp>getAlertPolicies(GetAlertPoliciesOptions getAlertPoliciesOptions)List alert policies.com.ibm.cloud.sdk.core.http.ServiceCall<GetAlertPolicyResp>getAlertPolicy(GetAlertPolicyOptions getAlertPolicyOptions)Get an alert policy.StringgetCrn()Gets the crn.static AlertsnewInstance(String crn)Class method which constructs an instance of the `Alerts` client.static AlertsnewInstance(String crn, String serviceName)Class method which constructs an instance of the `Alerts` client.voidsetCrn(String crn)Sets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp>updateAlertPolicy(UpdateAlertPolicyOptions updateAlertPolicyOptions)Update an alert policy.- 
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- 
Alertspublic Alerts(String crn, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator) Constructs an instance of the `Alerts` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- 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 Alerts newInstance(String crn) Class method which constructs an instance of the `Alerts` client. The default service name is used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- Returns:
- an instance of the `Alerts` client using external configuration
 
 - 
newInstancepublic static Alerts newInstance(String crn, String serviceName) Class method which constructs an instance of the `Alerts` client. The specified service name is used to configure the client instance.- Parameters:
- crn- Full url-encoded CRN of the service instance.
- serviceName- the service name to be used when configuring the client instance
- Returns:
- an instance of the `Alerts` client using external configuration
 
 - 
getCrnpublic String getCrn() Gets the crn. Full url-encoded CRN of the service instance.- Returns:
- the crn
 
 - 
setCrnpublic void setCrn(String crn) Sets the crn.- Parameters:
- crn- the new crn
 
 - 
getAlertPoliciespublic com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertPoliciesResp> getAlertPolicies(GetAlertPoliciesOptions getAlertPoliciesOptions) List alert policies. List configured alert policies for the CIS instance.- Parameters:
- getAlertPoliciesOptions- the- GetAlertPoliciesOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeListAlertPoliciesResp
 
 - 
getAlertPoliciespublic com.ibm.cloud.sdk.core.http.ServiceCall<ListAlertPoliciesResp> getAlertPolicies() List alert policies. List configured alert policies for the CIS instance.- Returns:
- a ServiceCallwith a result of typeListAlertPoliciesResp
 
 - 
createAlertPolicypublic com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp> createAlertPolicy(CreateAlertPolicyOptions createAlertPolicyOptions) Create an alert policy. Create a new alert policy for the CIS instance.- Parameters:
- createAlertPolicyOptions- the- CreateAlertPolicyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeAlertSuccessResp
 
 - 
createAlertPolicypublic com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp> createAlertPolicy() Create an alert policy. Create a new alert policy for the CIS instance.- Returns:
- a ServiceCallwith a result of typeAlertSuccessResp
 
 - 
getAlertPolicypublic com.ibm.cloud.sdk.core.http.ServiceCall<GetAlertPolicyResp> getAlertPolicy(GetAlertPolicyOptions getAlertPolicyOptions) Get an alert policy. Get an alert policy for the CIS instance.- Parameters:
- getAlertPolicyOptions- the- GetAlertPolicyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeGetAlertPolicyResp
 
 - 
updateAlertPolicypublic com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp> updateAlertPolicy(UpdateAlertPolicyOptions updateAlertPolicyOptions) Update an alert policy. Update an existing alert policy for the CIS instance.- Parameters:
- updateAlertPolicyOptions- the- UpdateAlertPolicyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeAlertSuccessResp
 
 - 
deleteAlertPolicypublic com.ibm.cloud.sdk.core.http.ServiceCall<AlertSuccessResp> deleteAlertPolicy(DeleteAlertPolicyOptions deleteAlertPolicyOptions) Delete an alert policy. Delete an alert policy for the CIS instance.- Parameters:
- deleteAlertPolicyOptions- the- DeleteAlertPolicyOptionscontaining the options for the call
- Returns:
- a ServiceCallwith a result of typeAlertSuccessResp
 
 
- 
 
-