Package com.oracle.bmc.core.requests
Class AttachServiceIdRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.core.requests.AttachServiceIdRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<AttachServiceIdRequest,ServiceIdRequestDetails>
- Enclosing class:
- AttachServiceIdRequest
public static class AttachServiceIdRequest.Builder extends Object implements BmcRequest.Builder<AttachServiceIdRequest,ServiceIdRequestDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachServiceIdRequest.BuilderattachServiceDetails(ServiceIdRequestDetails attachServiceDetails)ServiceId of Service to be attached to a service gateway.AttachServiceIdRequest.Builderbody$(ServiceIdRequestDetails body)Alternative setter for the body parameter.AttachServiceIdRequestbuild()Build the instance of AttachServiceIdRequest as configured by this builderAttachServiceIdRequestbuildWithoutInvocationCallback()Build the instance of AttachServiceIdRequest as configured by this builderAttachServiceIdRequest.Buildercopy(AttachServiceIdRequest o)Copy method to populate the builder with values from the given instance.AttachServiceIdRequest.BuilderifMatch(String ifMatch)For optimistic concurrency control.AttachServiceIdRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.AttachServiceIdRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.AttachServiceIdRequest.BuilderserviceGatewayId(String serviceGatewayId)The service gateway’s OCID.
-
-
-
Method Detail
-
serviceGatewayId
public AttachServiceIdRequest.Builder serviceGatewayId(String serviceGatewayId)
The service gateway’s OCID.- Parameters:
serviceGatewayId- the value to set- Returns:
- this builder instance
-
attachServiceDetails
public AttachServiceIdRequest.Builder attachServiceDetails(ServiceIdRequestDetails attachServiceDetails)
ServiceId of Service to be attached to a service gateway.- Parameters:
attachServiceDetails- the value to set- Returns:
- this builder instance
-
ifMatch
public AttachServiceIdRequest.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 AttachServiceIdRequest.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 AttachServiceIdRequest.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 AttachServiceIdRequest.Builder copy(AttachServiceIdRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<AttachServiceIdRequest,ServiceIdRequestDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public AttachServiceIdRequest build()
Build the instance of AttachServiceIdRequest 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<AttachServiceIdRequest,ServiceIdRequestDetails>- Returns:
- instance of AttachServiceIdRequest
-
body$
public AttachServiceIdRequest.Builder body$(ServiceIdRequestDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<AttachServiceIdRequest,ServiceIdRequestDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public AttachServiceIdRequest buildWithoutInvocationCallback()
Build the instance of AttachServiceIdRequest 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 AttachServiceIdRequest
-
-