BucketContents class

Constructors

BucketContents.new({required String name, String? encodingType, String? prefix, String? marker, required int maxKeys, required bool isTruncated, String? nextMarker, required List<Content?> contentsList, required List<CommonPrefixes?> commonPrefixesList, String? delimiter})

Properties

commonPrefixesList List<CommonPrefixes?>
从 prefix 或从头(如未指定 prefix)到首个 delimiter 之间相同的部分, 定义为 Common Prefix。仅当请求中指定了 delimiter 参数才有可能返回该节点
getter/setter pair
contentsList List<Content?>
对象条目
getter/setter pair
delimiter String?
分隔符,对应请求中的 delimiter 参数,且仅当请求中指定了 delimiter 参数才会返回该节点
getter/setter pair
encodingType String?
编码格式,对应请求中的 encoding-type 参数,且仅当请求中指定了 encoding-type 参数才会返回该节点
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isTruncated bool
响应条目是否被截断,布尔值,例如 true 或 false
getter/setter pair
marker String?
起始对象键标记,从该标记之后(不含)按照 UTF-8 字典序返回对象键条目,对应请求中的 marker 参数
getter/setter pair
maxKeys int
单次响应返回结果的最大条目数量,对应请求中的 max-keys 参数 注意:该参数会限制每一次 List 操作返回的最大条目数,COS 在每次 List 操作中将返回不超过 max-keys 所设定数值的条目。 如果由于您设置了 max-keys 参数,导致单次响应中未列出所有对象,COS 会返回一项 nextmarker 参数作为您下次 List 请求的入参, 以便您后续进行列出对象
getter/setter pair
name String
存储桶的名称,格式为
getter/setter pair
nextMarker String?
仅当响应条目有截断(IsTruncated 为 true)才会返回该节点, 该节点的值为当前响应条目中的最后一个对象键,当需要继续请求后续条目时,将该节点的值作为下一次请求的 marker 参数传入
getter/setter pair
prefix String?
对象键匹配前缀,对应请求中的 prefix 参数
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode(Object result) BucketContents