All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.avs.inputs.WorkloadNetworkDhcpServerArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.azurenative.avs.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * NSX DHCP Server
 * 
 */
public final class WorkloadNetworkDhcpServerArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkloadNetworkDhcpServerArgs Empty = new WorkloadNetworkDhcpServerArgs();

    /**
     * Type of DHCP: SERVER or RELAY.
     * Expected value is 'SERVER'.
     * 
     */
    @Import(name="dhcpType", required=true)
    private Output dhcpType;

    /**
     * @return Type of DHCP: SERVER or RELAY.
     * Expected value is 'SERVER'.
     * 
     */
    public Output dhcpType() {
        return this.dhcpType;
    }

    /**
     * Display name of the DHCP entity.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Display name of the DHCP entity.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * DHCP Server Lease Time.
     * 
     */
    @Import(name="leaseTime")
    private @Nullable Output leaseTime;

    /**
     * @return DHCP Server Lease Time.
     * 
     */
    public Optional> leaseTime() {
        return Optional.ofNullable(this.leaseTime);
    }

    /**
     * NSX revision number.
     * 
     */
    @Import(name="revision")
    private @Nullable Output revision;

    /**
     * @return NSX revision number.
     * 
     */
    public Optional> revision() {
        return Optional.ofNullable(this.revision);
    }

    /**
     * DHCP Server Address.
     * 
     */
    @Import(name="serverAddress")
    private @Nullable Output serverAddress;

    /**
     * @return DHCP Server Address.
     * 
     */
    public Optional> serverAddress() {
        return Optional.ofNullable(this.serverAddress);
    }

    private WorkloadNetworkDhcpServerArgs() {}

    private WorkloadNetworkDhcpServerArgs(WorkloadNetworkDhcpServerArgs $) {
        this.dhcpType = $.dhcpType;
        this.displayName = $.displayName;
        this.leaseTime = $.leaseTime;
        this.revision = $.revision;
        this.serverAddress = $.serverAddress;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WorkloadNetworkDhcpServerArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WorkloadNetworkDhcpServerArgs $;

        public Builder() {
            $ = new WorkloadNetworkDhcpServerArgs();
        }

        public Builder(WorkloadNetworkDhcpServerArgs defaults) {
            $ = new WorkloadNetworkDhcpServerArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param dhcpType Type of DHCP: SERVER or RELAY.
         * Expected value is 'SERVER'.
         * 
         * @return builder
         * 
         */
        public Builder dhcpType(Output dhcpType) {
            $.dhcpType = dhcpType;
            return this;
        }

        /**
         * @param dhcpType Type of DHCP: SERVER or RELAY.
         * Expected value is 'SERVER'.
         * 
         * @return builder
         * 
         */
        public Builder dhcpType(String dhcpType) {
            return dhcpType(Output.of(dhcpType));
        }

        /**
         * @param displayName Display name of the DHCP entity.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Display name of the DHCP entity.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param leaseTime DHCP Server Lease Time.
         * 
         * @return builder
         * 
         */
        public Builder leaseTime(@Nullable Output leaseTime) {
            $.leaseTime = leaseTime;
            return this;
        }

        /**
         * @param leaseTime DHCP Server Lease Time.
         * 
         * @return builder
         * 
         */
        public Builder leaseTime(Double leaseTime) {
            return leaseTime(Output.of(leaseTime));
        }

        /**
         * @param revision NSX revision number.
         * 
         * @return builder
         * 
         */
        public Builder revision(@Nullable Output revision) {
            $.revision = revision;
            return this;
        }

        /**
         * @param revision NSX revision number.
         * 
         * @return builder
         * 
         */
        public Builder revision(Double revision) {
            return revision(Output.of(revision));
        }

        /**
         * @param serverAddress DHCP Server Address.
         * 
         * @return builder
         * 
         */
        public Builder serverAddress(@Nullable Output serverAddress) {
            $.serverAddress = serverAddress;
            return this;
        }

        /**
         * @param serverAddress DHCP Server Address.
         * 
         * @return builder
         * 
         */
        public Builder serverAddress(String serverAddress) {
            return serverAddress(Output.of(serverAddress));
        }

        public WorkloadNetworkDhcpServerArgs build() {
            $.dhcpType = Codegen.stringProp("dhcpType").output().arg($.dhcpType).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy