com.pulumi.alicloud.ots.outputs.GetTunnelsTunnel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.ots.outputs;
import com.pulumi.alicloud.ots.outputs.GetTunnelsTunnelChannel;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetTunnelsTunnel {
/**
* @return The channels of OTS tunnel. Each element contains the following attributes:
*
*/
private List channels;
/**
* @return The creation time of the Tunnel.
*
*/
private Integer createTime;
/**
* @return Whether the tunnel has expired.
*
*/
private Boolean expired;
/**
* @return The resource ID. The value is `<instance_name>:<table_name>:<tunnel_name>`.
*
*/
private String id;
/**
* @return The name of OTS instance.
*
*/
private String instanceName;
/**
* @return The name of OTS table.
*
*/
private String tableName;
/**
* @return The tunnel id of the OTS which could not be changed.
*
*/
private String tunnelId;
/**
* @return The tunnel name of the OTS which could not be changed.
*
*/
private String tunnelName;
/**
* @return The latest consumption time of the tunnel, unix time in nanosecond.
*
*/
private Integer tunnelRpo;
/**
* @return The stage of OTS tunnel, valid values: `InitBaseDataAndStreamShard`, `ProcessBaseData`, `ProcessStream`.
*
*/
private String tunnelStage;
/**
* @return The type of the OTS tunnel, valid values: `BaseAndStream`, `BaseData`, `Stream`.
*
*/
private String tunnelType;
private GetTunnelsTunnel() {}
/**
* @return The channels of OTS tunnel. Each element contains the following attributes:
*
*/
public List channels() {
return this.channels;
}
/**
* @return The creation time of the Tunnel.
*
*/
public Integer createTime() {
return this.createTime;
}
/**
* @return Whether the tunnel has expired.
*
*/
public Boolean expired() {
return this.expired;
}
/**
* @return The resource ID. The value is `<instance_name>:<table_name>:<tunnel_name>`.
*
*/
public String id() {
return this.id;
}
/**
* @return The name of OTS instance.
*
*/
public String instanceName() {
return this.instanceName;
}
/**
* @return The name of OTS table.
*
*/
public String tableName() {
return this.tableName;
}
/**
* @return The tunnel id of the OTS which could not be changed.
*
*/
public String tunnelId() {
return this.tunnelId;
}
/**
* @return The tunnel name of the OTS which could not be changed.
*
*/
public String tunnelName() {
return this.tunnelName;
}
/**
* @return The latest consumption time of the tunnel, unix time in nanosecond.
*
*/
public Integer tunnelRpo() {
return this.tunnelRpo;
}
/**
* @return The stage of OTS tunnel, valid values: `InitBaseDataAndStreamShard`, `ProcessBaseData`, `ProcessStream`.
*
*/
public String tunnelStage() {
return this.tunnelStage;
}
/**
* @return The type of the OTS tunnel, valid values: `BaseAndStream`, `BaseData`, `Stream`.
*
*/
public String tunnelType() {
return this.tunnelType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTunnelsTunnel defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List channels;
private Integer createTime;
private Boolean expired;
private String id;
private String instanceName;
private String tableName;
private String tunnelId;
private String tunnelName;
private Integer tunnelRpo;
private String tunnelStage;
private String tunnelType;
public Builder() {}
public Builder(GetTunnelsTunnel defaults) {
Objects.requireNonNull(defaults);
this.channels = defaults.channels;
this.createTime = defaults.createTime;
this.expired = defaults.expired;
this.id = defaults.id;
this.instanceName = defaults.instanceName;
this.tableName = defaults.tableName;
this.tunnelId = defaults.tunnelId;
this.tunnelName = defaults.tunnelName;
this.tunnelRpo = defaults.tunnelRpo;
this.tunnelStage = defaults.tunnelStage;
this.tunnelType = defaults.tunnelType;
}
@CustomType.Setter
public Builder channels(List channels) {
if (channels == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "channels");
}
this.channels = channels;
return this;
}
public Builder channels(GetTunnelsTunnelChannel... channels) {
return channels(List.of(channels));
}
@CustomType.Setter
public Builder createTime(Integer createTime) {
if (createTime == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "createTime");
}
this.createTime = createTime;
return this;
}
@CustomType.Setter
public Builder expired(Boolean expired) {
if (expired == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "expired");
}
this.expired = expired;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder instanceName(String instanceName) {
if (instanceName == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "instanceName");
}
this.instanceName = instanceName;
return this;
}
@CustomType.Setter
public Builder tableName(String tableName) {
if (tableName == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "tableName");
}
this.tableName = tableName;
return this;
}
@CustomType.Setter
public Builder tunnelId(String tunnelId) {
if (tunnelId == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "tunnelId");
}
this.tunnelId = tunnelId;
return this;
}
@CustomType.Setter
public Builder tunnelName(String tunnelName) {
if (tunnelName == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "tunnelName");
}
this.tunnelName = tunnelName;
return this;
}
@CustomType.Setter
public Builder tunnelRpo(Integer tunnelRpo) {
if (tunnelRpo == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "tunnelRpo");
}
this.tunnelRpo = tunnelRpo;
return this;
}
@CustomType.Setter
public Builder tunnelStage(String tunnelStage) {
if (tunnelStage == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "tunnelStage");
}
this.tunnelStage = tunnelStage;
return this;
}
@CustomType.Setter
public Builder tunnelType(String tunnelType) {
if (tunnelType == null) {
throw new MissingRequiredPropertyException("GetTunnelsTunnel", "tunnelType");
}
this.tunnelType = tunnelType;
return this;
}
public GetTunnelsTunnel build() {
final var _resultValue = new GetTunnelsTunnel();
_resultValue.channels = channels;
_resultValue.createTime = createTime;
_resultValue.expired = expired;
_resultValue.id = id;
_resultValue.instanceName = instanceName;
_resultValue.tableName = tableName;
_resultValue.tunnelId = tunnelId;
_resultValue.tunnelName = tunnelName;
_resultValue.tunnelRpo = tunnelRpo;
_resultValue.tunnelStage = tunnelStage;
_resultValue.tunnelType = tunnelType;
return _resultValue;
}
}
}