public static class PutGenericArtifactContentByPathRequest.Builder extends Object implements BmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
public PutGenericArtifactContentByPathRequest.Builder invocationCallback(Consumer<javax.ws.rs.client.Invocation.Builder> invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic PutGenericArtifactContentByPathRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic PutGenericArtifactContentByPathRequest.Builder copy(PutGenericArtifactContentByPathRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
o
- other request from which to copy valuespublic PutGenericArtifactContentByPathRequest build()
Build the instance of PutGenericArtifactContentByPathRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.util.internal.Consumer)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
public PutGenericArtifactContentByPathRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.
body$
in interface BmcRequest.Builder<PutGenericArtifactContentByPathRequest,InputStream>
body
- the body parameterpublic PutGenericArtifactContentByPathRequest.Builder repositoryId(String repositoryId)
The OCID of the repository.
Example: ocid1.repository.oc1..exampleuniqueID
this
.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
this
.public PutGenericArtifactContentByPathRequest.Builder version(String version)
A user-defined string to describe the artifact version.
Example: 1.1.2
or 1.2-beta-2
this
.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.
this
.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.
this
.public PutGenericArtifactContentByPathRequest.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned request ID
Example: bxxxxxxx-fxxx-4xxx-9xxx-bxxxxxxxxxxx
If you contact Oracle about a request, provide this request ID.
this
.public PutGenericArtifactContentByPathRequest buildWithoutInvocationCallback()
Copyright © 2016–2022. All rights reserved.