com.pulumi.alicloud.ots.outputs.GetTunnelsResult 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.GetTunnelsTunnel;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetTunnelsResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A list of tunnel IDs.
*
*/
private List ids;
/**
* @return The OTS instance name.
*
*/
private String instanceName;
private @Nullable String nameRegex;
/**
* @return A list of tunnel names.
*
*/
private List names;
private @Nullable String outputFile;
/**
* @return The table name of the OTS which could not be changed.
*
*/
private String tableName;
/**
* @return A list of tunnels. Each element contains the following attributes:
*
*/
private List tunnels;
private GetTunnelsResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A list of tunnel IDs.
*
*/
public List ids() {
return this.ids;
}
/**
* @return The OTS instance name.
*
*/
public String instanceName() {
return this.instanceName;
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* @return A list of tunnel names.
*
*/
public List names() {
return this.names;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
/**
* @return The table name of the OTS which could not be changed.
*
*/
public String tableName() {
return this.tableName;
}
/**
* @return A list of tunnels. Each element contains the following attributes:
*
*/
public List tunnels() {
return this.tunnels;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTunnelsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List ids;
private String instanceName;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private String tableName;
private List tunnels;
public Builder() {}
public Builder(GetTunnelsResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.ids = defaults.ids;
this.instanceName = defaults.instanceName;
this.nameRegex = defaults.nameRegex;
this.names = defaults.names;
this.outputFile = defaults.outputFile;
this.tableName = defaults.tableName;
this.tunnels = defaults.tunnels;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetTunnelsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetTunnelsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder instanceName(String instanceName) {
if (instanceName == null) {
throw new MissingRequiredPropertyException("GetTunnelsResult", "instanceName");
}
this.instanceName = instanceName;
return this;
}
@CustomType.Setter
public Builder nameRegex(@Nullable String nameRegex) {
this.nameRegex = nameRegex;
return this;
}
@CustomType.Setter
public Builder names(List names) {
if (names == null) {
throw new MissingRequiredPropertyException("GetTunnelsResult", "names");
}
this.names = names;
return this;
}
public Builder names(String... names) {
return names(List.of(names));
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder tableName(String tableName) {
if (tableName == null) {
throw new MissingRequiredPropertyException("GetTunnelsResult", "tableName");
}
this.tableName = tableName;
return this;
}
@CustomType.Setter
public Builder tunnels(List tunnels) {
if (tunnels == null) {
throw new MissingRequiredPropertyException("GetTunnelsResult", "tunnels");
}
this.tunnels = tunnels;
return this;
}
public Builder tunnels(GetTunnelsTunnel... tunnels) {
return tunnels(List.of(tunnels));
}
public GetTunnelsResult build() {
final var _resultValue = new GetTunnelsResult();
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.instanceName = instanceName;
_resultValue.nameRegex = nameRegex;
_resultValue.names = names;
_resultValue.outputFile = outputFile;
_resultValue.tableName = tableName;
_resultValue.tunnels = tunnels;
return _resultValue;
}
}
}