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

com.pulumi.azurenative.servicefabric.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.servicefabric.inputs;

import com.pulumi.azurenative.servicefabric.enums.PrivateEndpointNetworkPolicies;
import com.pulumi.azurenative.servicefabric.enums.PrivateLinkServiceNetworkPolicies;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SubnetArgs Empty = new SubnetArgs();

    /**
     * Indicates wether to enable Ipv6 or not. If not provided, it will take the same configuration as the cluster.
     * 
     */
    @Import(name="enableIpv6")
    private @Nullable Output enableIpv6;

    /**
     * @return Indicates wether to enable Ipv6 or not. If not provided, it will take the same configuration as the cluster.
     * 
     */
    public Optional> enableIpv6() {
        return Optional.ofNullable(this.enableIpv6);
    }

    /**
     * Subnet name.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Subnet name.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Full resource id for the network security group.
     * 
     */
    @Import(name="networkSecurityGroupId")
    private @Nullable Output networkSecurityGroupId;

    /**
     * @return Full resource id for the network security group.
     * 
     */
    public Optional> networkSecurityGroupId() {
        return Optional.ofNullable(this.networkSecurityGroupId);
    }

    /**
     * Enable or Disable apply network policies on private end point in the subnet.
     * 
     */
    @Import(name="privateEndpointNetworkPolicies")
    private @Nullable Output> privateEndpointNetworkPolicies;

    /**
     * @return Enable or Disable apply network policies on private end point in the subnet.
     * 
     */
    public Optional>> privateEndpointNetworkPolicies() {
        return Optional.ofNullable(this.privateEndpointNetworkPolicies);
    }

    /**
     * Enable or Disable apply network policies on private link service in the subnet.
     * 
     */
    @Import(name="privateLinkServiceNetworkPolicies")
    private @Nullable Output> privateLinkServiceNetworkPolicies;

    /**
     * @return Enable or Disable apply network policies on private link service in the subnet.
     * 
     */
    public Optional>> privateLinkServiceNetworkPolicies() {
        return Optional.ofNullable(this.privateLinkServiceNetworkPolicies);
    }

    private SubnetArgs() {}

    private SubnetArgs(SubnetArgs $) {
        this.enableIpv6 = $.enableIpv6;
        this.name = $.name;
        this.networkSecurityGroupId = $.networkSecurityGroupId;
        this.privateEndpointNetworkPolicies = $.privateEndpointNetworkPolicies;
        this.privateLinkServiceNetworkPolicies = $.privateLinkServiceNetworkPolicies;
    }

    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 enableIpv6 Indicates wether to enable Ipv6 or not. If not provided, it will take the same configuration as the cluster.
         * 
         * @return builder
         * 
         */
        public Builder enableIpv6(@Nullable Output enableIpv6) {
            $.enableIpv6 = enableIpv6;
            return this;
        }

        /**
         * @param enableIpv6 Indicates wether to enable Ipv6 or not. If not provided, it will take the same configuration as the cluster.
         * 
         * @return builder
         * 
         */
        public Builder enableIpv6(Boolean enableIpv6) {
            return enableIpv6(Output.of(enableIpv6));
        }

        /**
         * @param name Subnet name.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Subnet name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param networkSecurityGroupId Full resource id for the network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupId(@Nullable Output networkSecurityGroupId) {
            $.networkSecurityGroupId = networkSecurityGroupId;
            return this;
        }

        /**
         * @param networkSecurityGroupId Full resource id for the network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupId(String networkSecurityGroupId) {
            return networkSecurityGroupId(Output.of(networkSecurityGroupId));
        }

        /**
         * @param privateEndpointNetworkPolicies Enable or Disable apply network policies on private end point in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointNetworkPolicies(@Nullable Output> privateEndpointNetworkPolicies) {
            $.privateEndpointNetworkPolicies = privateEndpointNetworkPolicies;
            return this;
        }

        /**
         * @param privateEndpointNetworkPolicies Enable or Disable apply network policies on private end point in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointNetworkPolicies(Either privateEndpointNetworkPolicies) {
            return privateEndpointNetworkPolicies(Output.of(privateEndpointNetworkPolicies));
        }

        /**
         * @param privateEndpointNetworkPolicies Enable or Disable apply network policies on private end point in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointNetworkPolicies(String privateEndpointNetworkPolicies) {
            return privateEndpointNetworkPolicies(Either.ofLeft(privateEndpointNetworkPolicies));
        }

        /**
         * @param privateEndpointNetworkPolicies Enable or Disable apply network policies on private end point in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateEndpointNetworkPolicies(PrivateEndpointNetworkPolicies privateEndpointNetworkPolicies) {
            return privateEndpointNetworkPolicies(Either.ofRight(privateEndpointNetworkPolicies));
        }

        /**
         * @param privateLinkServiceNetworkPolicies Enable or Disable apply network policies on private link service in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceNetworkPolicies(@Nullable Output> privateLinkServiceNetworkPolicies) {
            $.privateLinkServiceNetworkPolicies = privateLinkServiceNetworkPolicies;
            return this;
        }

        /**
         * @param privateLinkServiceNetworkPolicies Enable or Disable apply network policies on private link service in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceNetworkPolicies(Either privateLinkServiceNetworkPolicies) {
            return privateLinkServiceNetworkPolicies(Output.of(privateLinkServiceNetworkPolicies));
        }

        /**
         * @param privateLinkServiceNetworkPolicies Enable or Disable apply network policies on private link service in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceNetworkPolicies(String privateLinkServiceNetworkPolicies) {
            return privateLinkServiceNetworkPolicies(Either.ofLeft(privateLinkServiceNetworkPolicies));
        }

        /**
         * @param privateLinkServiceNetworkPolicies Enable or Disable apply network policies on private link service in the subnet.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceNetworkPolicies(PrivateLinkServiceNetworkPolicies privateLinkServiceNetworkPolicies) {
            return privateLinkServiceNetworkPolicies(Either.ofRight(privateLinkServiceNetworkPolicies));
        }

        public SubnetArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("SubnetArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy