Package com.oracle.bmc.ocvp.requests
Class UpdateEsxiHostRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.ocvp.requests.UpdateEsxiHostRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<UpdateEsxiHostRequest,UpdateEsxiHostDetails>
- Enclosing class:
- UpdateEsxiHostRequest
public static class UpdateEsxiHostRequest.Builder extends Object implements BmcRequest.Builder<UpdateEsxiHostRequest,UpdateEsxiHostDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateEsxiHostRequest.Builderbody$(UpdateEsxiHostDetails body)Alternative setter for the body parameter.UpdateEsxiHostRequestbuild()Build the instance of UpdateEsxiHostRequest as configured by this builderUpdateEsxiHostRequestbuildWithoutInvocationCallback()Build the instance of UpdateEsxiHostRequest as configured by this builderUpdateEsxiHostRequest.Buildercopy(UpdateEsxiHostRequest o)Copy method to populate the builder with values from the given instance.UpdateEsxiHostRequest.BuilderesxiHostId(String esxiHostId)The OCID of the ESXi host.UpdateEsxiHostRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.UpdateEsxiHostRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.UpdateEsxiHostRequest.BuilderopcRequestId(String opcRequestId)Unique identifier for the request.UpdateEsxiHostRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.UpdateEsxiHostRequest.BuilderupdateEsxiHostDetails(UpdateEsxiHostDetails updateEsxiHostDetails)The information to be updated.
-
-
-
Method Detail
-
esxiHostId
public UpdateEsxiHostRequest.Builder esxiHostId(String esxiHostId)
The OCID of the ESXi host.- Parameters:
esxiHostId- the value to set- Returns:
- this builder instance
-
updateEsxiHostDetails
public UpdateEsxiHostRequest.Builder updateEsxiHostDetails(UpdateEsxiHostDetails updateEsxiHostDetails)
The information to be updated.- Parameters:
updateEsxiHostDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public UpdateEsxiHostRequest.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
-
opcRequestId
public UpdateEsxiHostRequest.Builder opcRequestId(String opcRequestId)
Unique 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
-
invocationCallback
public UpdateEsxiHostRequest.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 UpdateEsxiHostRequest.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 UpdateEsxiHostRequest.Builder copy(UpdateEsxiHostRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<UpdateEsxiHostRequest,UpdateEsxiHostDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public UpdateEsxiHostRequest build()
Build the instance of UpdateEsxiHostRequest 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:
buildin interfaceBmcRequest.Builder<UpdateEsxiHostRequest,UpdateEsxiHostDetails>- Returns:
- instance of UpdateEsxiHostRequest
-
body$
public UpdateEsxiHostRequest.Builder body$(UpdateEsxiHostDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<UpdateEsxiHostRequest,UpdateEsxiHostDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public UpdateEsxiHostRequest buildWithoutInvocationCallback()
Build the instance of UpdateEsxiHostRequest 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 UpdateEsxiHostRequest
-
-