Class PutGenericArtifactContentByPathRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.genericartifactscontent.requests.PutGenericArtifactContentByPathRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
- Enclosing class:
- PutGenericArtifactContentByPathRequest
public static class PutGenericArtifactContentByPathRequest.Builder extends Object implements BmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutGenericArtifactContentByPathRequest.Builder
artifactPath(String artifactPath)
A user-defined path to describe the location of an artifact.PutGenericArtifactContentByPathRequest.Builder
body$(InputStream body)
Alternative setter for the body parameter.PutGenericArtifactContentByPathRequest
build()
Build the instance of PutGenericArtifactContentByPathRequest as configured by this builderPutGenericArtifactContentByPathRequest
buildWithoutInvocationCallback()
Build the instance of PutGenericArtifactContentByPathRequest as configured by this builderPutGenericArtifactContentByPathRequest.Builder
copy(PutGenericArtifactContentByPathRequest o)
Copy method to populate the builder with values from the given instance.PutGenericArtifactContentByPathRequest.Builder
genericArtifactContentBody(InputStream genericArtifactContentBody)
Uploads an artifact.PutGenericArtifactContentByPathRequest.Builder
ifMatch(String ifMatch)
For optimistic concurrency control.PutGenericArtifactContentByPathRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.PutGenericArtifactContentByPathRequest.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned request IDPutGenericArtifactContentByPathRequest.Builder
repositoryId(String repositoryId)
The OCID of the repository.PutGenericArtifactContentByPathRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.PutGenericArtifactContentByPathRequest.Builder
version(String version)
A user-defined string to describe the artifact version.
-
-
-
Method Detail
-
repositoryId
public PutGenericArtifactContentByPathRequest.Builder repositoryId(String repositoryId)
The OCID of the repository.Example: ocid1.repository.oc1..exampleuniqueID
- Parameters:
repositoryId
- the value to set- Returns:
- this builder instance
-
artifactPath
public PutGenericArtifactContentByPathRequest.Builder artifactPath(String artifactPath)
A user-defined path to describe the location of an artifact.You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version.
Example: project01/my-web-app/artifact-abc
- Parameters:
artifactPath
- the value to set- Returns:
- this builder instance
-
version
public PutGenericArtifactContentByPathRequest.Builder version(String version)
A user-defined string to describe the artifact version.Example: 1.1.2 or 1.2-beta-2
- Parameters:
version
- the value to set- Returns:
- this builder instance
-
genericArtifactContentBody
public PutGenericArtifactContentByPathRequest.Builder genericArtifactContentBody(InputStream genericArtifactContentBody)
Uploads an artifact.Provide artifact path, version and content. Avoid entering confidential information when you define the path and version.
- Parameters:
genericArtifactContentBody
- the value to set- Returns:
- this builder instance
-
ifMatch
public PutGenericArtifactContentByPathRequest.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. When ‘if-match’ is provided and its value does not exactly match the ‘etag’ of the resource on the server, the request fails with the 412 response code.
- Parameters:
ifMatch
- the value to set- Returns:
- this builder instance
-
opcRequestId
public PutGenericArtifactContentByPathRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned request IDExample: bxxxxxxx-fxxx-4xxx-9xxx-bxxxxxxxxxxx If you contact Oracle about a request, provide this request ID.
- Parameters:
opcRequestId
- the value to set- Returns:
- this builder instance
-
invocationCallback
public PutGenericArtifactContentByPathRequest.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 PutGenericArtifactContentByPathRequest.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 PutGenericArtifactContentByPathRequest.Builder copy(PutGenericArtifactContentByPathRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public PutGenericArtifactContentByPathRequest build()
Build the instance of PutGenericArtifactContentByPathRequest 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<PutGenericArtifactContentByPathRequest,InputStream>
- Returns:
- instance of PutGenericArtifactContentByPathRequest
-
body$
public PutGenericArtifactContentByPathRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public PutGenericArtifactContentByPathRequest buildWithoutInvocationCallback()
Build the instance of PutGenericArtifactContentByPathRequest 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 PutGenericArtifactContentByPathRequest
-
-