Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,8 @@ public static class StorageConfig {
* - 7: Huawei Cloud
* <p>
* - 8: Baidu IntelligentCloud
* <p>
* - 11: Self-built cloud storage
*/
@JsonProperty("vendor")
private Integer vendor;
Expand Down Expand Up @@ -1711,13 +1713,22 @@ public static class ExtensionParams {
@JsonProperty("tag")
private String tag;

/**
* Domain name of self-built cloud storage.(Optional)
* <p>
* This field is required when vendor is set to 11.
*/
@JsonProperty("endpoint")
private String endpoint;

public static Builder builder() {
return new Builder();
}

private ExtensionParams(Builder builder) {
setSse(builder.sse);
setTag(builder.tag);
setEndpoint(builder.endpoint);
}

public String getSse() {
Expand All @@ -1736,11 +1747,20 @@ public void setTag(String tag) {
this.tag = tag;
}

public String getEndpoint() {
return endpoint;
}

public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}

@Override
public String toString() {
return "ExtensionParams{" +
"sse='" + sse + '\'' +
", tag='" + tag + '\'' +
", endpoint='" + endpoint + '\'' +
'}';
}

Expand All @@ -1750,6 +1770,8 @@ public static final class Builder {

private String tag;

private String endpoint;

private Builder() {
}

Expand All @@ -1763,6 +1785,11 @@ public Builder tag(String val) {
return this;
}

public Builder endpoint(String val) {
endpoint = val;
return this;
}

public ExtensionParams build() {
return new ExtensionParams(this);
}
Expand Down