com.pulumi.linode.VpcSubnetArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode cloud 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.linode;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class VpcSubnetArgs extends com.pulumi.resources.ResourceArgs {
public static final VpcSubnetArgs Empty = new VpcSubnetArgs();
/**
* The IPv4 range of this subnet in CIDR format.
*
*/
@Import(name="ipv4", required=true)
private Output ipv4;
/**
* @return The IPv4 range of this subnet in CIDR format.
*
*/
public Output ipv4() {
return this.ipv4;
}
/**
* The label of the VPC. Only contains ASCII letters, digits and dashes.
*
*/
@Import(name="label", required=true)
private Output label;
/**
* @return The label of the VPC. Only contains ASCII letters, digits and dashes.
*
*/
public Output label() {
return this.label;
}
/**
* The id of the parent VPC for this VPC Subnet.
*
*/
@Import(name="vpcId", required=true)
private Output vpcId;
/**
* @return The id of the parent VPC for this VPC Subnet.
*
*/
public Output vpcId() {
return this.vpcId;
}
private VpcSubnetArgs() {}
private VpcSubnetArgs(VpcSubnetArgs $) {
this.ipv4 = $.ipv4;
this.label = $.label;
this.vpcId = $.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VpcSubnetArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VpcSubnetArgs $;
public Builder() {
$ = new VpcSubnetArgs();
}
public Builder(VpcSubnetArgs defaults) {
$ = new VpcSubnetArgs(Objects.requireNonNull(defaults));
}
/**
* @param ipv4 The IPv4 range of this subnet in CIDR format.
*
* @return builder
*
*/
public Builder ipv4(Output ipv4) {
$.ipv4 = ipv4;
return this;
}
/**
* @param ipv4 The IPv4 range of this subnet in CIDR format.
*
* @return builder
*
*/
public Builder ipv4(String ipv4) {
return ipv4(Output.of(ipv4));
}
/**
* @param label The label of the VPC. Only contains ASCII letters, digits and dashes.
*
* @return builder
*
*/
public Builder label(Output label) {
$.label = label;
return this;
}
/**
* @param label The label of the VPC. Only contains ASCII letters, digits and dashes.
*
* @return builder
*
*/
public Builder label(String label) {
return label(Output.of(label));
}
/**
* @param vpcId The id of the parent VPC for this VPC Subnet.
*
* @return builder
*
*/
public Builder vpcId(Output vpcId) {
$.vpcId = vpcId;
return this;
}
/**
* @param vpcId The id of the parent VPC for this VPC Subnet.
*
* @return builder
*
*/
public Builder vpcId(Integer vpcId) {
return vpcId(Output.of(vpcId));
}
public VpcSubnetArgs build() {
if ($.ipv4 == null) {
throw new MissingRequiredPropertyException("VpcSubnetArgs", "ipv4");
}
if ($.label == null) {
throw new MissingRequiredPropertyException("VpcSubnetArgs", "label");
}
if ($.vpcId == null) {
throw new MissingRequiredPropertyException("VpcSubnetArgs", "vpcId");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy