Class CreateAlertPolicyResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.responses.CreateAlertPolicyResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<CreateAlertPolicyResponse>
- Enclosing class:
- CreateAlertPolicyResponse
public static class CreateAlertPolicyResponse.Builder extends Object implements BmcResponse.Builder<CreateAlertPolicyResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAlertPolicyResponse.Builder__httpStatusCode__(int __httpStatusCode__)CreateAlertPolicyResponse.BuilderalertPolicy(AlertPolicy alertPolicy)The returned AlertPolicy instance.CreateAlertPolicyResponsebuild()Build the response object.CreateAlertPolicyResponse.Buildercopy(CreateAlertPolicyResponse o)Copy method to populate the builder with values from the given instance.CreateAlertPolicyResponse.Builderetag(String etag)For optimistic concurrency control.CreateAlertPolicyResponse.Builderheaders(Map<String,List<String>> headers)CreateAlertPolicyResponse.Builderlocation(String location)The full URI of the alert policy.CreateAlertPolicyResponse.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.CreateAlertPolicyResponse.BuilderopcWorkRequestId(String opcWorkRequestId)The OCID of the work request.-
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.responses.BmcResponse.Builder
isNotModified
-
-
-
-
Method Detail
-
__httpStatusCode__
public CreateAlertPolicyResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__in interfaceBmcResponse.Builder<CreateAlertPolicyResponse>
-
headers
public CreateAlertPolicyResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headersin interfaceBmcResponse.Builder<CreateAlertPolicyResponse>
-
etag
public CreateAlertPolicyResponse.Builder etag(String etag)
For optimistic concurrency control.For more information, see ETags for Optimistic Concurrency Control
- Parameters:
etag- the value to set- Returns:
- this builder
-
opcWorkRequestId
public CreateAlertPolicyResponse.Builder opcWorkRequestId(String opcWorkRequestId)
The OCID of the work request.Use
getWorkRequestwith this OCID to track the status of the request.- Parameters:
opcWorkRequestId- the value to set- Returns:
- this builder
-
opcRequestId
public CreateAlertPolicyResponse.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
-
location
public CreateAlertPolicyResponse.Builder location(String location)
The full URI of the alert policy.- Parameters:
location- the value to set- Returns:
- this builder
-
alertPolicy
public CreateAlertPolicyResponse.Builder alertPolicy(AlertPolicy alertPolicy)
The returned AlertPolicy instance.- Parameters:
alertPolicy- the value to set- Returns:
- this builder
-
copy
public CreateAlertPolicyResponse.Builder copy(CreateAlertPolicyResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcResponse.Builder<CreateAlertPolicyResponse>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateAlertPolicyResponse build()
Build the response object.- Specified by:
buildin interfaceBmcResponse.Builder<CreateAlertPolicyResponse>- Returns:
- the response object
-
-