Package com.oracle.bmc.dns.requests
Class CreateZoneRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.dns.requests.CreateZoneRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateZoneRequest,CreateZoneBaseDetails>
- Enclosing class:
- CreateZoneRequest
public static class CreateZoneRequest.Builder extends Object implements BmcRequest.Builder<CreateZoneRequest,CreateZoneBaseDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateZoneRequest.Builder
body$(CreateZoneBaseDetails body)
Alternative setter for the body parameter.CreateZoneRequest
build()
Build the instance of CreateZoneRequest as configured by this builderCreateZoneRequest
buildWithoutInvocationCallback()
Build the instance of CreateZoneRequest as configured by this builderCreateZoneRequest.Builder
compartmentId(String compartmentId)
The OCID of the compartment the zone belongs to.CreateZoneRequest.Builder
copy(CreateZoneRequest o)
Copy method to populate the builder with values from the given instance.CreateZoneRequest.Builder
createZoneDetails(CreateZoneBaseDetails createZoneDetails)
Details for creating a new zone.CreateZoneRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.CreateZoneRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.CreateZoneRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.CreateZoneRequest.Builder
scope(Scope scope)
Specifies to operate only on resources that have a matching DNS scope.CreateZoneRequest.Builder
viewId(String viewId)
The OCID of the view the resource is associated with.
-
-
-
Method Detail
-
createZoneDetails
public CreateZoneRequest.Builder createZoneDetails(CreateZoneBaseDetails createZoneDetails)
Details for creating a new zone.- Parameters:
createZoneDetails
- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateZoneRequest.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
-
compartmentId
public CreateZoneRequest.Builder compartmentId(String compartmentId)
The OCID of the compartment the zone belongs to.This parameter is deprecated and should be omitted.
- Parameters:
compartmentId
- the value to set- Returns:
- this builder instance
-
scope
public CreateZoneRequest.Builder scope(Scope scope)
Specifies to operate only on resources that have a matching DNS scope.- Parameters:
scope
- the value to set- Returns:
- this builder instance
-
viewId
public CreateZoneRequest.Builder viewId(String viewId)
The OCID of the view the resource is associated with.- Parameters:
viewId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateZoneRequest.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 CreateZoneRequest.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 CreateZoneRequest.Builder copy(CreateZoneRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<CreateZoneRequest,CreateZoneBaseDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateZoneRequest build()
Build the instance of CreateZoneRequest 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<CreateZoneRequest,CreateZoneBaseDetails>
- Returns:
- instance of CreateZoneRequest
-
body$
public CreateZoneRequest.Builder body$(CreateZoneBaseDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<CreateZoneRequest,CreateZoneBaseDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateZoneRequest buildWithoutInvocationCallback()
Build the instance of CreateZoneRequest 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 CreateZoneRequest
-
-