Package com.oracle.bmc.core.requests
Class UpdateCrossConnectRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.core.requests.UpdateCrossConnectRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateCrossConnectRequest,UpdateCrossConnectDetails>
- Enclosing class:
- UpdateCrossConnectRequest
public static class UpdateCrossConnectRequest.Builder extends Object implements BmcRequest.Builder<UpdateCrossConnectRequest,UpdateCrossConnectDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateCrossConnectRequest.Builder
body$(UpdateCrossConnectDetails body)
Alternative setter for the body parameter.UpdateCrossConnectRequest
build()
Build the instance of UpdateCrossConnectRequest as configured by this builderUpdateCrossConnectRequest
buildWithoutInvocationCallback()
Build the instance of UpdateCrossConnectRequest as configured by this builderUpdateCrossConnectRequest.Builder
copy(UpdateCrossConnectRequest o)
Copy method to populate the builder with values from the given instance.UpdateCrossConnectRequest.Builder
crossConnectId(String crossConnectId)
The OCID of the cross-connect.UpdateCrossConnectRequest.Builder
ifMatch(String ifMatch)
For optimistic concurrency control.UpdateCrossConnectRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.UpdateCrossConnectRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.UpdateCrossConnectRequest.Builder
updateCrossConnectDetails(UpdateCrossConnectDetails updateCrossConnectDetails)
Update CrossConnect fields.
-
-
-
Method Detail
-
crossConnectId
public UpdateCrossConnectRequest.Builder crossConnectId(String crossConnectId)
The OCID of the cross-connect.- Parameters:
crossConnectId
- the value to set- Returns:
- this builder instance
-
updateCrossConnectDetails
public UpdateCrossConnectRequest.Builder updateCrossConnectDetails(UpdateCrossConnectDetails updateCrossConnectDetails)
Update CrossConnect fields.- Parameters:
updateCrossConnectDetails
- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateCrossConnectRequest.Builder ifMatch(String ifMatch)
For optimistic concurrency control.In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource’s current etag value.
- Parameters:
ifMatch
- the value to set- Returns:
- this builder instance
-
invocationCallback
public UpdateCrossConnectRequest.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 UpdateCrossConnectRequest.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 UpdateCrossConnectRequest.Builder copy(UpdateCrossConnectRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<UpdateCrossConnectRequest,UpdateCrossConnectDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateCrossConnectRequest build()
Build the instance of UpdateCrossConnectRequest 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<UpdateCrossConnectRequest,UpdateCrossConnectDetails>
- Returns:
- instance of UpdateCrossConnectRequest
-
body$
public UpdateCrossConnectRequest.Builder body$(UpdateCrossConnectDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<UpdateCrossConnectRequest,UpdateCrossConnectDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateCrossConnectRequest buildWithoutInvocationCallback()
Build the instance of UpdateCrossConnectRequest 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 UpdateCrossConnectRequest
-
-