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

com.pulumi.azurenative.avs.WorkloadNetworkSegmentArgs 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.avs;

import com.pulumi.azurenative.avs.inputs.WorkloadNetworkSegmentSubnetArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


public final class WorkloadNetworkSegmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkloadNetworkSegmentArgs Empty = new WorkloadNetworkSegmentArgs();

    /**
     * Gateway which to connect segment to.
     * 
     */
    @Import(name="connectedGateway")
    private @Nullable Output connectedGateway;

    /**
     * @return Gateway which to connect segment to.
     * 
     */
    public Optional> connectedGateway() {
        return Optional.ofNullable(this.connectedGateway);
    }

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

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

    /**
     * Name of the private cloud
     * 
     */
    @Import(name="privateCloudName", required=true)
    private Output privateCloudName;

    /**
     * @return Name of the private cloud
     * 
     */
    public Output privateCloudName() {
        return this.privateCloudName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

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

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

    /**
     * NSX Segment identifier. Generally the same as the Segment's display name
     * 
     */
    @Import(name="segmentId")
    private @Nullable Output segmentId;

    /**
     * @return NSX Segment identifier. Generally the same as the Segment's display name
     * 
     */
    public Optional> segmentId() {
        return Optional.ofNullable(this.segmentId);
    }

    /**
     * Subnet which to connect segment to.
     * 
     */
    @Import(name="subnet")
    private @Nullable Output subnet;

    /**
     * @return Subnet which to connect segment to.
     * 
     */
    public Optional> subnet() {
        return Optional.ofNullable(this.subnet);
    }

    private WorkloadNetworkSegmentArgs() {}

    private WorkloadNetworkSegmentArgs(WorkloadNetworkSegmentArgs $) {
        this.connectedGateway = $.connectedGateway;
        this.displayName = $.displayName;
        this.privateCloudName = $.privateCloudName;
        this.resourceGroupName = $.resourceGroupName;
        this.revision = $.revision;
        this.segmentId = $.segmentId;
        this.subnet = $.subnet;
    }

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

    public static final class Builder {
        private WorkloadNetworkSegmentArgs $;

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

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

        /**
         * @param connectedGateway Gateway which to connect segment to.
         * 
         * @return builder
         * 
         */
        public Builder connectedGateway(@Nullable Output connectedGateway) {
            $.connectedGateway = connectedGateway;
            return this;
        }

        /**
         * @param connectedGateway Gateway which to connect segment to.
         * 
         * @return builder
         * 
         */
        public Builder connectedGateway(String connectedGateway) {
            return connectedGateway(Output.of(connectedGateway));
        }

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

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

        /**
         * @param privateCloudName Name of the private cloud
         * 
         * @return builder
         * 
         */
        public Builder privateCloudName(Output privateCloudName) {
            $.privateCloudName = privateCloudName;
            return this;
        }

        /**
         * @param privateCloudName Name of the private cloud
         * 
         * @return builder
         * 
         */
        public Builder privateCloudName(String privateCloudName) {
            return privateCloudName(Output.of(privateCloudName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @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 segmentId NSX Segment identifier. Generally the same as the Segment's display name
         * 
         * @return builder
         * 
         */
        public Builder segmentId(@Nullable Output segmentId) {
            $.segmentId = segmentId;
            return this;
        }

        /**
         * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name
         * 
         * @return builder
         * 
         */
        public Builder segmentId(String segmentId) {
            return segmentId(Output.of(segmentId));
        }

        /**
         * @param subnet Subnet which to connect segment to.
         * 
         * @return builder
         * 
         */
        public Builder subnet(@Nullable Output subnet) {
            $.subnet = subnet;
            return this;
        }

        /**
         * @param subnet Subnet which to connect segment to.
         * 
         * @return builder
         * 
         */
        public Builder subnet(WorkloadNetworkSegmentSubnetArgs subnet) {
            return subnet(Output.of(subnet));
        }

        public WorkloadNetworkSegmentArgs build() {
            if ($.privateCloudName == null) {
                throw new MissingRequiredPropertyException("WorkloadNetworkSegmentArgs", "privateCloudName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkloadNetworkSegmentArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy