com.volcengine.tos.model.bucket.SourceEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ve-tos-java-sdk Show documentation
Show all versions of ve-tos-java-sdk Show documentation
The VolcEngine TOS SDK for Java
package com.volcengine.tos.model.bucket;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
public class SourceEndpoint {
@JsonProperty("Primary")
private List primary;
@JsonProperty("Follower")
private List follower;
public List getPrimary() {
return primary;
}
public SourceEndpoint setPrimary(List primary) {
this.primary = primary;
return this;
}
public List getFollower() {
return follower;
}
public SourceEndpoint setFollower(List follower) {
this.follower = follower;
return this;
}
@Override
public String toString() {
return "SourceEndpoint{" +
"primary=" + primary +
", follower=" + follower +
'}';
}
public static SourceEndpointBuilder builder() {
return new SourceEndpointBuilder();
}
public static final class SourceEndpointBuilder {
private List primary;
private List follower;
private SourceEndpointBuilder() {
}
public SourceEndpointBuilder primary(List primary) {
this.primary = primary;
return this;
}
public SourceEndpointBuilder follower(List follower) {
this.follower = follower;
return this;
}
public SourceEndpoint build() {
SourceEndpoint sourceEndpoint = new SourceEndpoint();
sourceEndpoint.setPrimary(primary);
sourceEndpoint.setFollower(follower);
return sourceEndpoint;
}
}
}