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

com.pulumi.azurenative.devtestlab.inputs.SubnetArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.devtestlab.inputs;

import com.pulumi.azurenative.devtestlab.enums.UsagePermissionType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Subnet information.
 * 
 */
public final class SubnetArgs extends com.pulumi.resources.ResourceArgs {

    public static final SubnetArgs Empty = new SubnetArgs();

    /**
     * The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
     * 
     */
    @Import(name="allowPublicIp")
    private @Nullable Output> allowPublicIp;

    /**
     * @return The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
     * 
     */
    public Optional>> allowPublicIp() {
        return Optional.ofNullable(this.allowPublicIp);
    }

    /**
     * The name of the subnet as seen in the lab.
     * 
     */
    @Import(name="labSubnetName")
    private @Nullable Output labSubnetName;

    /**
     * @return The name of the subnet as seen in the lab.
     * 
     */
    public Optional> labSubnetName() {
        return Optional.ofNullable(this.labSubnetName);
    }

    /**
     * The resource ID of the subnet.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return The resource ID of the subnet.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    private SubnetArgs() {}

    private SubnetArgs(SubnetArgs $) {
        this.allowPublicIp = $.allowPublicIp;
        this.labSubnetName = $.labSubnetName;
        this.resourceId = $.resourceId;
    }

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

    public static final class Builder {
        private SubnetArgs $;

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

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

        /**
         * @param allowPublicIp The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
         * 
         * @return builder
         * 
         */
        public Builder allowPublicIp(@Nullable Output> allowPublicIp) {
            $.allowPublicIp = allowPublicIp;
            return this;
        }

        /**
         * @param allowPublicIp The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
         * 
         * @return builder
         * 
         */
        public Builder allowPublicIp(Either allowPublicIp) {
            return allowPublicIp(Output.of(allowPublicIp));
        }

        /**
         * @param allowPublicIp The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
         * 
         * @return builder
         * 
         */
        public Builder allowPublicIp(String allowPublicIp) {
            return allowPublicIp(Either.ofLeft(allowPublicIp));
        }

        /**
         * @param allowPublicIp The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
         * 
         * @return builder
         * 
         */
        public Builder allowPublicIp(UsagePermissionType allowPublicIp) {
            return allowPublicIp(Either.ofRight(allowPublicIp));
        }

        /**
         * @param labSubnetName The name of the subnet as seen in the lab.
         * 
         * @return builder
         * 
         */
        public Builder labSubnetName(@Nullable Output labSubnetName) {
            $.labSubnetName = labSubnetName;
            return this;
        }

        /**
         * @param labSubnetName The name of the subnet as seen in the lab.
         * 
         * @return builder
         * 
         */
        public Builder labSubnetName(String labSubnetName) {
            return labSubnetName(Output.of(labSubnetName));
        }

        /**
         * @param resourceId The resource ID of the subnet.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The resource ID of the subnet.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        public SubnetArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy