Tabnine Logo
CommitMultipartUploadDetails
Code IndexAdd Tabnine to your IDE (free)

How to use
CommitMultipartUploadDetails
in
com.oracle.bmc.objectstorage.model

Best Java code snippets using com.oracle.bmc.objectstorage.model.CommitMultipartUploadDetails (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: oracle/oci-java-sdk

public CommitMultipartUploadDetails build() {
  CommitMultipartUploadDetails __instance__ =
      new CommitMultipartUploadDetails(partsToCommit, partsToExclude);
  __instance__.__explicitlySet__.addAll(__explicitlySet__);
  return __instance__;
}
origin: oracle/oci-java-sdk

  @com.fasterxml.jackson.annotation.JsonIgnore
  public Builder copy(CommitMultipartUploadDetails o) {
    Builder copiedBuilder =
        partsToCommit(o.getPartsToCommit()).partsToExclude(o.getPartsToExclude());
    copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
    return copiedBuilder;
  }
}
origin: oracle/oci-java-sdk

/**
 * Commits the multi-part upload after all in-progress uploads have
 * completed.
 * <p>
 * This is a blocking call, and throws IllegalStateException if you try to commit an upload
 * in which the Manifest reports it is not successful ({@link MultipartManifest#isUploadSuccessful}).
 * @return The commit response.
 */
public CommitMultipartUploadResponse commit() {
  validateState();
  transferManager.awaitCompletion();
  if (!manifest.isUploadSuccessful()) {
    throw new IllegalStateException(
        "One or more parts were have not completed upload successfully");
  }
  return service.commitMultipartUpload(
      CommitMultipartUploadRequest.builder()
          .namespaceName(namespaceName)
          .bucketName(bucketName)
          .objectName(objectName)
          .uploadId(manifest.getUploadId())
          .commitMultipartUploadDetails(
              CommitMultipartUploadDetails.builder()
                  .partsToCommit(manifest.listCompletedParts())
                  .partsToExclude(
                      new ArrayList<Integer>(0)) // nothing to exclude
                  .build())
          .opcClientRequestId(createClientRequestId("-commit"))
          .build());
}
com.oracle.bmc.objectstorage.modelCommitMultipartUploadDetails

Javadoc

To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
Note: Objects should always be created or deserialized using the Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the Builder, which maintain a set of all explicitly set fields called #__explicitlySet__. The #hashCode() and #equals(Object) methods are implemented to take #__explicitlySet__ into account. The constructor, on the other hand, does not set #__explicitlySet__(since the constructor cannot distinguish explicit null from unset null).

Most used methods

  • <init>
  • builder
    Create a new builder.
  • getPartsToCommit
  • getPartsToExclude

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • Menu (java.awt)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now