S3ObjectSummary.getOwner
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.amazonaws.services.s3.model.S3ObjectSummary.getOwner(Showing top 2 results out of 315)

origin: apache/nifi

@Override
public VersionListing listVersions() {
  VersionListing versionListing = new VersionListing();
  this.objectListing = client.listObjects(listObjectsRequest);
  for(S3ObjectSummary objectSummary : objectListing.getObjectSummaries()) {
    S3VersionSummary versionSummary = new S3VersionSummary();
    versionSummary.setBucketName(objectSummary.getBucketName());
    versionSummary.setETag(objectSummary.getETag());
    versionSummary.setKey(objectSummary.getKey());
    versionSummary.setLastModified(objectSummary.getLastModified());
    versionSummary.setOwner(objectSummary.getOwner());
    versionSummary.setSize(objectSummary.getSize());
    versionSummary.setStorageClass(objectSummary.getStorageClass());
    versionSummary.setIsLatest(true);
    versionListing.getVersionSummaries().add(versionSummary);
  }
  return versionListing;
}
origin: apache/nifi

@Override
public VersionListing listVersions() {
  VersionListing versionListing = new VersionListing();
  this.objectListing = client.listObjectsV2(listObjectsRequest);
  for(S3ObjectSummary objectSummary : objectListing.getObjectSummaries()) {
    S3VersionSummary versionSummary = new S3VersionSummary();
    versionSummary.setBucketName(objectSummary.getBucketName());
    versionSummary.setETag(objectSummary.getETag());
    versionSummary.setKey(objectSummary.getKey());
    versionSummary.setLastModified(objectSummary.getLastModified());
    versionSummary.setOwner(objectSummary.getOwner());
    versionSummary.setSize(objectSummary.getSize());
    versionSummary.setStorageClass(objectSummary.getStorageClass());
    versionSummary.setIsLatest(true);
    versionListing.getVersionSummaries().add(versionSummary);
  }
  return versionListing;
}
com.amazonaws.services.s3.modelS3ObjectSummarygetOwner

Javadoc

Gets the owner of this object. Returns null if the requester doesn't have Permission#ReadAcp permission for this object or owns the bucket in which it resides.

Popular methods of S3ObjectSummary

  • getKey
    Gets the key under which this object is stored in Amazon S3.
  • getSize
    Gets the size of this object in bytes.
  • getLastModified
    Gets the date when, according to Amazon S3, this object was last modified.
  • getBucketName
    Gets the name of the Amazon S3 bucket in which this object is stored.
  • <init>
  • setKey
    Sets the key under which this object is stored in Amazon S3.
  • setSize
    Sets the size of this object in bytes.
  • setBucketName
    Sets the name of the Amazon S3 bucket in which this object is stored.
  • setStorageClass
    Sets the storage class used by Amazon S3 for this object.
  • setETag
    Sets the hex encoded 128-bit MD5 hash of this object's contents as computed by Amazon S3.
  • setLastModified
    Sets the date, according to Amazon S3, this object was last modified.
  • setOwner
    Sets the owner of this object.
  • setLastModified,
  • setOwner,
  • getStorageClass,
  • getETag

Popular classes and methods

  • setScale (BigDecimal)
    Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
  • getApplicationContext (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TimeZone (java.util)
    TimeZone represents a time zone, primarily used for configuring a Calendar or java.text.SimpleDateF
  • TreeMap (java.util)
    A map whose entries are sorted by their keys. All optional operations such as #put and #remove are s

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)