com.aliyun.sdk.service.ens20171110.models.ListObjectsResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ens20171110 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListObjectsResponseBody} extends {@link TeaModel}
*
* ListObjectsResponseBody
*/
public class ListObjectsResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("BucketName")
private String bucketName;
@com.aliyun.core.annotation.NameInMap("CommonPrefixes")
private java.util.List commonPrefixes;
@com.aliyun.core.annotation.NameInMap("Contents")
private java.util.List contents;
@com.aliyun.core.annotation.NameInMap("ContinuationToken")
private String continuationToken;
@com.aliyun.core.annotation.NameInMap("Delimiter")
private String delimiter;
@com.aliyun.core.annotation.NameInMap("EncodingType")
private String encodingType;
@com.aliyun.core.annotation.NameInMap("IsTruncated")
private Boolean isTruncated;
@com.aliyun.core.annotation.NameInMap("KeyCount")
private Long keyCount;
@com.aliyun.core.annotation.NameInMap("Marker")
private String marker;
@com.aliyun.core.annotation.NameInMap("MaxKeys")
private Long maxKeys;
@com.aliyun.core.annotation.NameInMap("NextContinuationToken")
private String nextContinuationToken;
@com.aliyun.core.annotation.NameInMap("NextMarker")
private String nextMarker;
@com.aliyun.core.annotation.NameInMap("Prefix")
private String prefix;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
private ListObjectsResponseBody(Builder builder) {
this.bucketName = builder.bucketName;
this.commonPrefixes = builder.commonPrefixes;
this.contents = builder.contents;
this.continuationToken = builder.continuationToken;
this.delimiter = builder.delimiter;
this.encodingType = builder.encodingType;
this.isTruncated = builder.isTruncated;
this.keyCount = builder.keyCount;
this.marker = builder.marker;
this.maxKeys = builder.maxKeys;
this.nextContinuationToken = builder.nextContinuationToken;
this.nextMarker = builder.nextMarker;
this.prefix = builder.prefix;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListObjectsResponseBody create() {
return builder().build();
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
/**
* @return commonPrefixes
*/
public java.util.List getCommonPrefixes() {
return this.commonPrefixes;
}
/**
* @return contents
*/
public java.util.List getContents() {
return this.contents;
}
/**
* @return continuationToken
*/
public String getContinuationToken() {
return this.continuationToken;
}
/**
* @return delimiter
*/
public String getDelimiter() {
return this.delimiter;
}
/**
* @return encodingType
*/
public String getEncodingType() {
return this.encodingType;
}
/**
* @return isTruncated
*/
public Boolean getIsTruncated() {
return this.isTruncated;
}
/**
* @return keyCount
*/
public Long getKeyCount() {
return this.keyCount;
}
/**
* @return marker
*/
public String getMarker() {
return this.marker;
}
/**
* @return maxKeys
*/
public Long getMaxKeys() {
return this.maxKeys;
}
/**
* @return nextContinuationToken
*/
public String getNextContinuationToken() {
return this.nextContinuationToken;
}
/**
* @return nextMarker
*/
public String getNextMarker() {
return this.nextMarker;
}
/**
* @return prefix
*/
public String getPrefix() {
return this.prefix;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String bucketName;
private java.util.List commonPrefixes;
private java.util.List contents;
private String continuationToken;
private String delimiter;
private String encodingType;
private Boolean isTruncated;
private Long keyCount;
private String marker;
private Long maxKeys;
private String nextContinuationToken;
private String nextMarker;
private String prefix;
private String requestId;
/**
* The name of the bucket.
*
* example:
* test
*/
public Builder bucketName(String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* If the delimiter parameter is specified in the request, the response contains CommonPrefixes. Objects whose names contain the same string from the prefix to the next occurrence of the delimiter are grouped as a single result element in CommonPrefixes.
*/
public Builder commonPrefixes(java.util.List commonPrefixes) {
this.commonPrefixes = commonPrefixes;
return this;
}
/**
* The list of object metadata.
*/
public Builder contents(java.util.List contents) {
this.contents = contents;
return this;
}
/**
* The token used in this list operation.
*
* example:
* test1.txt
*/
public Builder continuationToken(String continuationToken) {
this.continuationToken = continuationToken;
return this;
}
/**
* The character used to group objects by name.
*
* example:
* /
*/
public Builder delimiter(String delimiter) {
this.delimiter = delimiter;
return this;
}
/**
* The encoding type of the object names in the response.
*
* example:
* N/A
*/
public Builder encodingType(String encodingType) {
this.encodingType = encodingType;
return this;
}
/**
* Indicates whether the listed objects are truncated. Valid values:
*
* - false
* - true
*
*
* example:
* true
*/
public Builder isTruncated(Boolean isTruncated) {
this.isTruncated = isTruncated;
return this;
}
/**
* The number of keys returned for this request.
*
* example:
* 10
*/
public Builder keyCount(Long keyCount) {
this.keyCount = keyCount;
return this;
}
/**
* The position from which the list operation starts.
*
* example:
* ceshi.txt1617853707991
*/
public Builder marker(String marker) {
this.marker = marker;
return this;
}
/**
* The maximum number of objects returned.
*
* example:
* 10
*/
public Builder maxKeys(Long maxKeys) {
this.maxKeys = maxKeys;
return this;
}
/**
* The token used in the next list operation.
*
* example:
* CgJiYw--
*/
public Builder nextContinuationToken(String nextContinuationToken) {
this.nextContinuationToken = nextContinuationToken;
return this;
}
/**
* The position from which the next list operation starts.
*
* example:
* ceshi.txt1617853707991
*/
public Builder nextMarker(String nextMarker) {
this.nextMarker = nextMarker;
return this;
}
/**
* The prefix contained in the names of returned objects.
*
* example:
* b
*/
public Builder prefix(String prefix) {
this.prefix = prefix;
return this;
}
/**
* The ID of the request.
*
* example:
* 4833C4AC-9396-458C-8F25-1D701334E560
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListObjectsResponseBody build() {
return new ListObjectsResponseBody(this);
}
}
/**
*
* {@link ListObjectsResponseBody} extends {@link TeaModel}
*
* ListObjectsResponseBody
*/
public static class Contents extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ETag")
private String eTag;
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("LastModified")
private String lastModified;
@com.aliyun.core.annotation.NameInMap("Size")
private Long size;
private Contents(Builder builder) {
this.eTag = builder.eTag;
this.key = builder.key;
this.lastModified = builder.lastModified;
this.size = builder.size;
}
public static Builder builder() {
return new Builder();
}
public static Contents create() {
return builder().build();
}
/**
* @return eTag
*/
public String getETag() {
return this.eTag;
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return lastModified
*/
public String getLastModified() {
return this.lastModified;
}
/**
* @return size
*/
public Long getSize() {
return this.size;
}
public static final class Builder {
private String eTag;
private String key;
private String lastModified;
private Long size;
/**
* The entity tag (ETag). When an object is created, an ETag is created to identify the content of the object.
*
* - For an object that is created by calling the PutObject operation, the ETag value of the object is the MD5 hash of the object content.
* - For an object that is not created by calling the PutObject operation, the ETag value of the object is the UUID of the object content.
* - The ETag of an object can be used to check whether the object content is modified. However, we recommend that you use the MD5 hash of an object rather than the ETag value of the object to verify data integrity.
*
*
* example:
* 5B3C1A2E053D763E1B002CC607C5****
*/
public Builder eTag(String eTag) {
this.eTag = eTag;
return this;
}
/**
* The name of the object.
*
* example:
* ceshi.txt1617853706546
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The time when the object was last modified.
*
* example:
* 2021-04-08T03:48:47.488Z
*/
public Builder lastModified(String lastModified) {
this.lastModified = lastModified;
return this;
}
/**
* The size of the returned object. Unit: bytes.
*
* example:
* 15
*/
public Builder size(Long size) {
this.size = size;
return this;
}
public Contents build() {
return new Contents(this);
}
}
}
}