congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EncryptedPutObjectRequest
Code IndexAdd Tabnine to your IDE (free)

How to use
EncryptedPutObjectRequest
in
com.amazonaws.services.s3.model

Best Java code snippets using com.amazonaws.services.s3.model.EncryptedPutObjectRequest (Showing top 13 results out of 315)

origin: aws/aws-sdk-java

  /**
   * Returns a clone (as deep as possible) of this request object.
   */
  @Override
  public EncryptedPutObjectRequest clone() {
    EncryptedPutObjectRequest cloned = (EncryptedPutObjectRequest) super.clone();
    final Map<String, String> materialsDescription = getMaterialsDescription();
    cloned.withMaterialsDescription(materialsDescription == null
      ? null
      : new HashMap<String, String>(materialsDescription))
      ;
    return cloned;
  }
}
origin: aws/aws-sdk-java

/**
 * sets the materials description for the encryption materials to be used with the current PutObjectRequest.
 * @param materialsDescription the materialsDescription to set
 */
public EncryptedPutObjectRequest withMaterialsDescription(Map<String, String> materialsDescription) {
  setMaterialsDescription(materialsDescription);
  return this;
}
origin: aws-amplify/aws-sdk-android

/**
 * Returns a clone (as deep as possible) of this request object.
 */
@Override
public EncryptedPutObjectRequest clone() {
  final EncryptedPutObjectRequest cloned =
    new EncryptedPutObjectRequest(
      getBucketName(), getKey(), getFile());
  super.copyPutObjectBaseTo(cloned);
  final Map<String, String> materialsDescription = getMaterialsDescription();
  cloned.withMaterialsDescription(materialsDescription == null
      ? null
      : new HashMap<String, String>(materialsDescription));
  return cloned;
}
origin: aws-amplify/aws-sdk-android

@Test
public void cloneEncryptedPutObjectRequest() {
  final File file = new File("somefile");
  // null material description
  EncryptedPutObjectRequest clone = doTestClone(
      new EncryptedPutObjectRequest("bucket", "key", file),
      "bucket", "key", file);
  assertNull(clone.getMaterialsDescription());
  // non-null material description
  Map<String,String> md = new HashMap<String, String>();
  md.put("foo", "bar");
  md = Collections.unmodifiableMap(md);
  clone = doTestClone(
      new EncryptedPutObjectRequest("bucket", "key", file).withMaterialsDescription(md),
      "bucket", "key", file);
  assertEquals(clone.getMaterialsDescription(), md);
  assertNotSame(clone.getMaterialsDescription(), md);
}
origin: aws/aws-sdk-java

      origReq.getCannedAcl()).withObjectMetadata(origReq.getMetadata());
  ((EncryptedInitiateMultipartUploadRequest) req)
      .setMaterialsDescription(((EncryptedPutObjectRequest) origReq).getMaterialsDescription());
} else {
  req = new InitiateMultipartUploadRequest(origReq.getBucketName(), origReq.getKey())
origin: com.amazonaws/aws-android-sdk-s3

/**
 * Returns a clone (as deep as possible) of this request object.
 */
@Override
public EncryptedPutObjectRequest clone() {
  final EncryptedPutObjectRequest cloned =
    new EncryptedPutObjectRequest(
      getBucketName(), getKey(), getFile());
  super.copyPutObjectBaseTo(cloned);
  final Map<String, String> materialsDescription = getMaterialsDescription();
  cloned.withMaterialsDescription(materialsDescription == null
      ? null
      : new HashMap<String, String>(materialsDescription));
  return cloned;
}
origin: aws-amplify/aws-sdk-android

  ((EncryptedInitiateMultipartUploadRequest) initiateMultipartUploadRequest)
      .setMaterialsDescription(((EncryptedPutObjectRequest) putObjectRequest)
          .getMaterialsDescription());
} else {
  initiateMultipartUploadRequest = new InitiateMultipartUploadRequest(
origin: Nextdoor/bender

  /**
   * Returns a clone (as deep as possible) of this request object.
   */
  @Override
  public EncryptedPutObjectRequest clone() {
    final EncryptedPutObjectRequest cloned =
      new EncryptedPutObjectRequest(
        getBucketName(), getKey(), getFile());
    super.copyPutObjectBaseTo(cloned);
    final Map<String, String> materialsDescription = getMaterialsDescription();
    cloned.withMaterialsDescription(materialsDescription == null
      ? null
      : new HashMap<String, String>(materialsDescription))
      ;
    return cloned;
  }
}
origin: Nextdoor/bender

      origReq.getCannedAcl()).withObjectMetadata(origReq.getMetadata());
  ((EncryptedInitiateMultipartUploadRequest) req)
      .setMaterialsDescription(((EncryptedPutObjectRequest) origReq).getMaterialsDescription());
} else {
  req = new InitiateMultipartUploadRequest(origReq.getBucketName(), origReq.getKey())
origin: aws-amplify/aws-sdk-android

/**
 * sets the materials description for the encryption materials to be used
 * with the current PutObjectRequest.
 *
 * @param materialsDescription the materialsDescription to set
 */
public EncryptedPutObjectRequest withMaterialsDescription(
    Map<String, String> materialsDescription) {
  setMaterialsDescription(materialsDescription);
  return this;
}
origin: com.amazonaws/aws-android-sdk-s3

  ((EncryptedInitiateMultipartUploadRequest) initiateMultipartUploadRequest)
      .setMaterialsDescription(((EncryptedPutObjectRequest) putObjectRequest)
          .getMaterialsDescription());
} else {
  initiateMultipartUploadRequest = new InitiateMultipartUploadRequest(
origin: com.amazonaws/aws-android-sdk-s3

/**
 * sets the materials description for the encryption materials to be used
 * with the current PutObjectRequest.
 *
 * @param materialsDescription the materialsDescription to set
 */
public EncryptedPutObjectRequest withMaterialsDescription(
    Map<String, String> materialsDescription) {
  setMaterialsDescription(materialsDescription);
  return this;
}
origin: Nextdoor/bender

/**
 * sets the materials description for the encryption materials to be used with the current PutObjectRequest.
 * @param materialsDescription the materialsDescription to set
 */
public EncryptedPutObjectRequest withMaterialsDescription(Map<String, String> materialsDescription) {
  setMaterialsDescription(materialsDescription);
  return this;
}
com.amazonaws.services.s3.modelEncryptedPutObjectRequest

Javadoc

This class is an extension of PutObjectRequest to allow additional encryption material description to be specified on a per-request basis.In particular, EncryptedPutObjectRequest is only recognized by AmazonS3EncryptionClient.

If EncryptedPutObjectRequest is used against the non-encrypting AmazonS3Client, the additional attributes will be ignored.

Most used methods

  • getMaterialsDescription
  • withMaterialsDescription
    sets the materials description for the encryption materials to be used with the current PutObjectReq
  • <init>
  • setMaterialsDescription
    sets the materials description for the encryption materials to be used with the current PutObjectReq
  • getBucketName
  • getFile
  • getKey

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Top 12 Jupyter Notebook Extensions
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