congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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 1,395)

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

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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