Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.googlenative.compute.alpha.VpnGatewayArgs Maven / Gradle / Ivy
// *** 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.googlenative.compute.alpha;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.compute.alpha.enums.VpnGatewayGatewayIpVersion;
import com.pulumi.googlenative.compute.alpha.enums.VpnGatewayStackType;
import com.pulumi.googlenative.compute.alpha.inputs.VpnGatewayVpnGatewayInterfaceArgs;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class VpnGatewayArgs extends com.pulumi.resources.ResourceArgs {
public static final VpnGatewayArgs Empty = new VpnGatewayArgs();
/**
* An optional description of this resource. Provide this property when you create the resource.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return An optional description of this resource. Provide this property when you create the resource.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.
*
*/
@Import(name="gatewayIpVersion")
private @Nullable Output gatewayIpVersion;
/**
* @return The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.
*
*/
public Optional> gatewayIpVersion() {
return Optional.ofNullable(this.gatewayIpVersion);
}
/**
* Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
*
*/
@Import(name="labels")
private @Nullable Output> labels;
/**
* @return Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
*
*/
public Optional>> labels() {
return Optional.ofNullable(this.labels);
}
/**
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.
*
*/
@Import(name="network")
private @Nullable Output network;
/**
* @return URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.
*
*/
public Optional> network() {
return Optional.ofNullable(this.network);
}
@Import(name="project")
private @Nullable Output project;
public Optional> project() {
return Optional.ofNullable(this.project);
}
@Import(name="region", required=true)
private Output region;
public Output region() {
return this.region;
}
/**
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
*/
@Import(name="requestId")
private @Nullable Output requestId;
/**
* @return An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
*/
public Optional> requestId() {
return Optional.ofNullable(this.requestId);
}
/**
* The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used.
*
*/
@Import(name="stackType")
private @Nullable Output stackType;
/**
* @return The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used.
*
*/
public Optional> stackType() {
return Optional.ofNullable(this.stackType);
}
/**
* The list of VPN interfaces associated with this VPN gateway.
*
*/
@Import(name="vpnInterfaces")
private @Nullable Output> vpnInterfaces;
/**
* @return The list of VPN interfaces associated with this VPN gateway.
*
*/
public Optional>> vpnInterfaces() {
return Optional.ofNullable(this.vpnInterfaces);
}
private VpnGatewayArgs() {}
private VpnGatewayArgs(VpnGatewayArgs $) {
this.description = $.description;
this.gatewayIpVersion = $.gatewayIpVersion;
this.labels = $.labels;
this.name = $.name;
this.network = $.network;
this.project = $.project;
this.region = $.region;
this.requestId = $.requestId;
this.stackType = $.stackType;
this.vpnInterfaces = $.vpnInterfaces;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VpnGatewayArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VpnGatewayArgs $;
public Builder() {
$ = new VpnGatewayArgs();
}
public Builder(VpnGatewayArgs defaults) {
$ = new VpnGatewayArgs(Objects.requireNonNull(defaults));
}
/**
* @param description An optional description of this resource. Provide this property when you create the resource.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description An optional description of this resource. Provide this property when you create the resource.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param gatewayIpVersion The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.
*
* @return builder
*
*/
public Builder gatewayIpVersion(@Nullable Output gatewayIpVersion) {
$.gatewayIpVersion = gatewayIpVersion;
return this;
}
/**
* @param gatewayIpVersion The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used.
*
* @return builder
*
*/
public Builder gatewayIpVersion(VpnGatewayGatewayIpVersion gatewayIpVersion) {
return gatewayIpVersion(Output.of(gatewayIpVersion));
}
/**
* @param labels Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
*
* @return builder
*
*/
public Builder labels(@Nullable Output> labels) {
$.labels = labels;
return this;
}
/**
* @param labels Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
*
* @return builder
*
*/
public Builder labels(Map labels) {
return labels(Output.of(labels));
}
/**
* @param name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param network URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.
*
* @return builder
*
*/
public Builder network(@Nullable Output network) {
$.network = network;
return this;
}
/**
* @param network URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created.
*
* @return builder
*
*/
public Builder network(String network) {
return network(Output.of(network));
}
public Builder project(@Nullable Output project) {
$.project = project;
return this;
}
public Builder project(String project) {
return project(Output.of(project));
}
public Builder region(Output region) {
$.region = region;
return this;
}
public Builder region(String region) {
return region(Output.of(region));
}
/**
* @param requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
* @return builder
*
*/
public Builder requestId(@Nullable Output requestId) {
$.requestId = requestId;
return this;
}
/**
* @param requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
* @return builder
*
*/
public Builder requestId(String requestId) {
return requestId(Output.of(requestId));
}
/**
* @param stackType The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used.
*
* @return builder
*
*/
public Builder stackType(@Nullable Output stackType) {
$.stackType = stackType;
return this;
}
/**
* @param stackType The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used.
*
* @return builder
*
*/
public Builder stackType(VpnGatewayStackType stackType) {
return stackType(Output.of(stackType));
}
/**
* @param vpnInterfaces The list of VPN interfaces associated with this VPN gateway.
*
* @return builder
*
*/
public Builder vpnInterfaces(@Nullable Output> vpnInterfaces) {
$.vpnInterfaces = vpnInterfaces;
return this;
}
/**
* @param vpnInterfaces The list of VPN interfaces associated with this VPN gateway.
*
* @return builder
*
*/
public Builder vpnInterfaces(List vpnInterfaces) {
return vpnInterfaces(Output.of(vpnInterfaces));
}
/**
* @param vpnInterfaces The list of VPN interfaces associated with this VPN gateway.
*
* @return builder
*
*/
public Builder vpnInterfaces(VpnGatewayVpnGatewayInterfaceArgs... vpnInterfaces) {
return vpnInterfaces(List.of(vpnInterfaces));
}
public VpnGatewayArgs build() {
$.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null");
return $;
}
}
}