
com.pulumi.aws.ec2.VpcDhcpOptionsAssociationArgs 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.aws.ec2;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class VpcDhcpOptionsAssociationArgs extends com.pulumi.resources.ResourceArgs {
public static final VpcDhcpOptionsAssociationArgs Empty = new VpcDhcpOptionsAssociationArgs();
/**
* The ID of the DHCP Options Set to associate to the VPC.
*
*/
@Import(name="dhcpOptionsId", required=true)
private Output dhcpOptionsId;
/**
* @return The ID of the DHCP Options Set to associate to the VPC.
*
*/
public Output dhcpOptionsId() {
return this.dhcpOptionsId;
}
/**
* The ID of the VPC to which we would like to associate a DHCP Options Set.
*
*/
@Import(name="vpcId", required=true)
private Output vpcId;
/**
* @return The ID of the VPC to which we would like to associate a DHCP Options Set.
*
*/
public Output vpcId() {
return this.vpcId;
}
private VpcDhcpOptionsAssociationArgs() {}
private VpcDhcpOptionsAssociationArgs(VpcDhcpOptionsAssociationArgs $) {
this.dhcpOptionsId = $.dhcpOptionsId;
this.vpcId = $.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VpcDhcpOptionsAssociationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private VpcDhcpOptionsAssociationArgs $;
public Builder() {
$ = new VpcDhcpOptionsAssociationArgs();
}
public Builder(VpcDhcpOptionsAssociationArgs defaults) {
$ = new VpcDhcpOptionsAssociationArgs(Objects.requireNonNull(defaults));
}
/**
* @param dhcpOptionsId The ID of the DHCP Options Set to associate to the VPC.
*
* @return builder
*
*/
public Builder dhcpOptionsId(Output dhcpOptionsId) {
$.dhcpOptionsId = dhcpOptionsId;
return this;
}
/**
* @param dhcpOptionsId The ID of the DHCP Options Set to associate to the VPC.
*
* @return builder
*
*/
public Builder dhcpOptionsId(String dhcpOptionsId) {
return dhcpOptionsId(Output.of(dhcpOptionsId));
}
/**
* @param vpcId The ID of the VPC to which we would like to associate a DHCP Options Set.
*
* @return builder
*
*/
public Builder vpcId(Output vpcId) {
$.vpcId = vpcId;
return this;
}
/**
* @param vpcId The ID of the VPC to which we would like to associate a DHCP Options Set.
*
* @return builder
*
*/
public Builder vpcId(String vpcId) {
return vpcId(Output.of(vpcId));
}
public VpcDhcpOptionsAssociationArgs build() {
if ($.dhcpOptionsId == null) {
throw new MissingRequiredPropertyException("VpcDhcpOptionsAssociationArgs", "dhcpOptionsId");
}
if ($.vpcId == null) {
throw new MissingRequiredPropertyException("VpcDhcpOptionsAssociationArgs", "vpcId");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy