1 package com.netease.nimlib.sdk.misc.model;
3 import android.text.TextUtils;
5 import androidx.annotation.NonNull;
9 final private String bucket;
11 final private String cdnDomain;
13 final private long deadline;
15 final private String objectNamePrefix;
17 public NosConfig(String bucket, @NonNull String cdnDomain,
long deadline, String objectNamePrefix) {
19 this.cdnDomain = cdnDomain;
20 this.deadline = deadline;
21 this.objectNamePrefix = objectNamePrefix;
37 return objectNamePrefix;
41 return deadline != 0 && !TextUtils.isEmpty(cdnDomain);
45 return deadline == -1;
51 "bucket='" + bucket +
'\'' +
52 ", cdnDomain='" + cdnDomain +
'\'' +
53 ", deadline=" + deadline +
54 ", objectNamePrefix='" + objectNamePrefix +
'\'' +
String getObjectNamePrefix()
NosConfig(String bucket, @NonNull String cdnDomain, long deadline, String objectNamePrefix)