com.pulumi.alicloud.vpn.inputs.GetGatewayVcoRoutesPlainArgs 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.vpn.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetGatewayVcoRoutesPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetGatewayVcoRoutesPlainArgs Empty = new GetGatewayVcoRoutesPlainArgs();
/**
* A list of Vco Route IDs.
*
*/
@Import(name="ids")
private @Nullable List ids;
/**
* @return A list of Vco Route IDs.
*
*/
public Optional> ids() {
return Optional.ofNullable(this.ids);
}
/**
* File name where to save data source results (after running `pulumi preview`).
*
*/
@Import(name="outputFile")
private @Nullable String outputFile;
/**
* @return File name where to save data source results (after running `pulumi preview`).
*
*/
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
@Import(name="pageNumber")
private @Nullable Integer pageNumber;
public Optional pageNumber() {
return Optional.ofNullable(this.pageNumber);
}
@Import(name="pageSize")
private @Nullable Integer pageSize;
public Optional pageSize() {
return Optional.ofNullable(this.pageSize);
}
/**
* The Routing input type. Valid values: `custom`, `bgp`.
*
*/
@Import(name="routeEntryType")
private @Nullable String routeEntryType;
/**
* @return The Routing input type. Valid values: `custom`, `bgp`.
*
*/
public Optional routeEntryType() {
return Optional.ofNullable(this.routeEntryType);
}
/**
* The status of the vpn route entry. Valid values: `normal`, `published`.
*
*/
@Import(name="status")
private @Nullable String status;
/**
* @return The status of the vpn route entry. Valid values: `normal`, `published`.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* The id of the vpn connection.
*
*/
@Import(name="vpnConnectionId", required=true)
private String vpnConnectionId;
/**
* @return The id of the vpn connection.
*
*/
public String vpnConnectionId() {
return this.vpnConnectionId;
}
private GetGatewayVcoRoutesPlainArgs() {}
private GetGatewayVcoRoutesPlainArgs(GetGatewayVcoRoutesPlainArgs $) {
this.ids = $.ids;
this.outputFile = $.outputFile;
this.pageNumber = $.pageNumber;
this.pageSize = $.pageSize;
this.routeEntryType = $.routeEntryType;
this.status = $.status;
this.vpnConnectionId = $.vpnConnectionId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGatewayVcoRoutesPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetGatewayVcoRoutesPlainArgs $;
public Builder() {
$ = new GetGatewayVcoRoutesPlainArgs();
}
public Builder(GetGatewayVcoRoutesPlainArgs defaults) {
$ = new GetGatewayVcoRoutesPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param ids A list of Vco Route IDs.
*
* @return builder
*
*/
public Builder ids(@Nullable List ids) {
$.ids = ids;
return this;
}
/**
* @param ids A list of Vco Route IDs.
*
* @return builder
*
*/
public Builder ids(String... ids) {
return ids(List.of(ids));
}
/**
* @param outputFile File name where to save data source results (after running `pulumi preview`).
*
* @return builder
*
*/
public Builder outputFile(@Nullable String outputFile) {
$.outputFile = outputFile;
return this;
}
public Builder pageNumber(@Nullable Integer pageNumber) {
$.pageNumber = pageNumber;
return this;
}
public Builder pageSize(@Nullable Integer pageSize) {
$.pageSize = pageSize;
return this;
}
/**
* @param routeEntryType The Routing input type. Valid values: `custom`, `bgp`.
*
* @return builder
*
*/
public Builder routeEntryType(@Nullable String routeEntryType) {
$.routeEntryType = routeEntryType;
return this;
}
/**
* @param status The status of the vpn route entry. Valid values: `normal`, `published`.
*
* @return builder
*
*/
public Builder status(@Nullable String status) {
$.status = status;
return this;
}
/**
* @param vpnConnectionId The id of the vpn connection.
*
* @return builder
*
*/
public Builder vpnConnectionId(String vpnConnectionId) {
$.vpnConnectionId = vpnConnectionId;
return this;
}
public GetGatewayVcoRoutesPlainArgs build() {
if ($.vpnConnectionId == null) {
throw new MissingRequiredPropertyException("GetGatewayVcoRoutesPlainArgs", "vpnConnectionId");
}
return $;
}
}
}