Skip to content

Commit ad82c36

Browse files
authored
Merge pull request #30 from seymourtang/feat/cloudrecording
feat(CloudRecording): Add support for self-built cloud storage in StorageConfig and ExtensionParams
2 parents 77ac528 + 11df452 commit ad82c36

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

agora-rest-client-core/src/main/java/io/agora/rest/services/cloudrecording/api/req/StartResourceReq.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,8 @@ public static class StorageConfig {
14361436
* - 7: Huawei Cloud
14371437
* <p>
14381438
* - 8: Baidu IntelligentCloud
1439+
* <p>
1440+
* - 11: Self-built cloud storage
14391441
*/
14401442
@JsonProperty("vendor")
14411443
private Integer vendor;
@@ -1711,13 +1713,22 @@ public static class ExtensionParams {
17111713
@JsonProperty("tag")
17121714
private String tag;
17131715

1716+
/**
1717+
* Domain name of self-built cloud storage.(Optional)
1718+
* <p>
1719+
* This field is required when vendor is set to 11.
1720+
*/
1721+
@JsonProperty("endpoint")
1722+
private String endpoint;
1723+
17141724
public static Builder builder() {
17151725
return new Builder();
17161726
}
17171727

17181728
private ExtensionParams(Builder builder) {
17191729
setSse(builder.sse);
17201730
setTag(builder.tag);
1731+
setEndpoint(builder.endpoint);
17211732
}
17221733

17231734
public String getSse() {
@@ -1736,11 +1747,20 @@ public void setTag(String tag) {
17361747
this.tag = tag;
17371748
}
17381749

1750+
public String getEndpoint() {
1751+
return endpoint;
1752+
}
1753+
1754+
public void setEndpoint(String endpoint) {
1755+
this.endpoint = endpoint;
1756+
}
1757+
17391758
@Override
17401759
public String toString() {
17411760
return "ExtensionParams{" +
17421761
"sse='" + sse + '\'' +
17431762
", tag='" + tag + '\'' +
1763+
", endpoint='" + endpoint + '\'' +
17441764
'}';
17451765
}
17461766

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

17511771
private String tag;
17521772

1773+
private String endpoint;
1774+
17531775
private Builder() {
17541776
}
17551777

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

1788+
public Builder endpoint(String val) {
1789+
endpoint = val;
1790+
return this;
1791+
}
1792+
17661793
public ExtensionParams build() {
17671794
return new ExtensionParams(this);
17681795
}

0 commit comments

Comments
 (0)