Class CreateTermRelationshipRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.datacatalog.requests.CreateTermRelationshipRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateTermRelationshipRequest,CreateTermRelationshipDetails>
- Enclosing class:
- CreateTermRelationshipRequest
public static class CreateTermRelationshipRequest.Builder extends Object implements BmcRequest.Builder<CreateTermRelationshipRequest,CreateTermRelationshipDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTermRelationshipRequest.Builderbody$(CreateTermRelationshipDetails body)Alternative setter for the body parameter.CreateTermRelationshipRequestbuild()Build the instance of CreateTermRelationshipRequest as configured by this builderCreateTermRelationshipRequestbuildWithoutInvocationCallback()Build the instance of CreateTermRelationshipRequest as configured by this builderCreateTermRelationshipRequest.BuildercatalogId(String catalogId)Unique catalog identifier.CreateTermRelationshipRequest.Buildercopy(CreateTermRelationshipRequest o)Copy method to populate the builder with values from the given instance.CreateTermRelationshipRequest.BuildercreateTermRelationshipDetails(CreateTermRelationshipDetails createTermRelationshipDetails)The information used to create the term relationship.CreateTermRelationshipRequest.BuilderglossaryKey(String glossaryKey)Unique glossary key.CreateTermRelationshipRequest.BuilderinvocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)Set the invocation callback for the request to be built.CreateTermRelationshipRequest.BuilderopcRequestId(String opcRequestId)The client request ID for tracing.CreateTermRelationshipRequest.BuilderopcRetryToken(String opcRetryToken)A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.CreateTermRelationshipRequest.BuilderretryConfiguration(RetryConfiguration retryConfiguration)Set the retry configuration for the request to be built.CreateTermRelationshipRequest.BuildertermKey(String termKey)Unique glossary term key.
-
-
-
Method Detail
-
catalogId
public CreateTermRelationshipRequest.Builder catalogId(String catalogId)
Unique catalog identifier.- Parameters:
catalogId- the value to set- Returns:
- this builder instance
-
glossaryKey
public CreateTermRelationshipRequest.Builder glossaryKey(String glossaryKey)
Unique glossary key.- Parameters:
glossaryKey- the value to set- Returns:
- this builder instance
-
termKey
public CreateTermRelationshipRequest.Builder termKey(String termKey)
Unique glossary term key.- Parameters:
termKey- the value to set- Returns:
- this builder instance
-
createTermRelationshipDetails
public CreateTermRelationshipRequest.Builder createTermRelationshipDetails(CreateTermRelationshipDetails createTermRelationshipDetails)
The information used to create the term relationship.- Parameters:
createTermRelationshipDetails- the value to set- Returns:
- this builder instance
-
opcRequestId
public CreateTermRelationshipRequest.Builder opcRequestId(String opcRequestId)
The client request ID for tracing.- Parameters:
opcRequestId- the value to set- Returns:
- this builder instance
-
opcRetryToken
public CreateTermRelationshipRequest.Builder opcRetryToken(String opcRetryToken)
A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
- Parameters:
opcRetryToken- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateTermRelationshipRequest.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 CreateTermRelationshipRequest.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 CreateTermRelationshipRequest.Builder copy(CreateTermRelationshipRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcRequest.Builder<CreateTermRelationshipRequest,CreateTermRelationshipDetails>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateTermRelationshipRequest build()
Build the instance of CreateTermRelationshipRequest 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<CreateTermRelationshipRequest,CreateTermRelationshipDetails>- Returns:
- instance of CreateTermRelationshipRequest
-
body$
public CreateTermRelationshipRequest.Builder body$(CreateTermRelationshipDetails body)
Alternative setter for the body parameter.- Specified by:
body$in interfaceBmcRequest.Builder<CreateTermRelationshipRequest,CreateTermRelationshipDetails>- Parameters:
body- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateTermRelationshipRequest buildWithoutInvocationCallback()
Build the instance of CreateTermRelationshipRequest 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 CreateTermRelationshipRequest
-
-