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

com.pulumi.azurenative.peering.PeeringArgs 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.peering;

import com.pulumi.azurenative.peering.enums.Kind;
import com.pulumi.azurenative.peering.inputs.PeeringPropertiesDirectArgs;
import com.pulumi.azurenative.peering.inputs.PeeringPropertiesExchangeArgs;
import com.pulumi.azurenative.peering.inputs.PeeringSkuArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PeeringArgs Empty = new PeeringArgs();

    /**
     * The properties that define a direct peering.
     * 
     */
    @Import(name="direct")
    private @Nullable Output direct;

    /**
     * @return The properties that define a direct peering.
     * 
     */
    public Optional> direct() {
        return Optional.ofNullable(this.direct);
    }

    /**
     * The properties that define an exchange peering.
     * 
     */
    @Import(name="exchange")
    private @Nullable Output exchange;

    /**
     * @return The properties that define an exchange peering.
     * 
     */
    public Optional> exchange() {
        return Optional.ofNullable(this.exchange);
    }

    /**
     * The kind of the peering.
     * 
     */
    @Import(name="kind", required=true)
    private Output> kind;

    /**
     * @return The kind of the peering.
     * 
     */
    public Output> kind() {
        return this.kind;
    }

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

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

    /**
     * The location of the peering.
     * 
     */
    @Import(name="peeringLocation")
    private @Nullable Output peeringLocation;

    /**
     * @return The location of the peering.
     * 
     */
    public Optional> peeringLocation() {
        return Optional.ofNullable(this.peeringLocation);
    }

    /**
     * The name of the peering.
     * 
     */
    @Import(name="peeringName")
    private @Nullable Output peeringName;

    /**
     * @return The name of the peering.
     * 
     */
    public Optional> peeringName() {
        return Optional.ofNullable(this.peeringName);
    }

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

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

    /**
     * The SKU that defines the tier and kind of the peering.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return The SKU that defines the tier and kind of the peering.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * The resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private PeeringArgs() {}

    private PeeringArgs(PeeringArgs $) {
        this.direct = $.direct;
        this.exchange = $.exchange;
        this.kind = $.kind;
        this.location = $.location;
        this.peeringLocation = $.peeringLocation;
        this.peeringName = $.peeringName;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PeeringArgs $;

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

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

        /**
         * @param direct The properties that define a direct peering.
         * 
         * @return builder
         * 
         */
        public Builder direct(@Nullable Output direct) {
            $.direct = direct;
            return this;
        }

        /**
         * @param direct The properties that define a direct peering.
         * 
         * @return builder
         * 
         */
        public Builder direct(PeeringPropertiesDirectArgs direct) {
            return direct(Output.of(direct));
        }

        /**
         * @param exchange The properties that define an exchange peering.
         * 
         * @return builder
         * 
         */
        public Builder exchange(@Nullable Output exchange) {
            $.exchange = exchange;
            return this;
        }

        /**
         * @param exchange The properties that define an exchange peering.
         * 
         * @return builder
         * 
         */
        public Builder exchange(PeeringPropertiesExchangeArgs exchange) {
            return exchange(Output.of(exchange));
        }

        /**
         * @param kind The kind of the peering.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The kind of the peering.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind The kind of the peering.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind The kind of the peering.
         * 
         * @return builder
         * 
         */
        public Builder kind(Kind kind) {
            return kind(Either.ofRight(kind));
        }

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

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

        /**
         * @param peeringLocation The location of the peering.
         * 
         * @return builder
         * 
         */
        public Builder peeringLocation(@Nullable Output peeringLocation) {
            $.peeringLocation = peeringLocation;
            return this;
        }

        /**
         * @param peeringLocation The location of the peering.
         * 
         * @return builder
         * 
         */
        public Builder peeringLocation(String peeringLocation) {
            return peeringLocation(Output.of(peeringLocation));
        }

        /**
         * @param peeringName The name of the peering.
         * 
         * @return builder
         * 
         */
        public Builder peeringName(@Nullable Output peeringName) {
            $.peeringName = peeringName;
            return this;
        }

        /**
         * @param peeringName The name of the peering.
         * 
         * @return builder
         * 
         */
        public Builder peeringName(String peeringName) {
            return peeringName(Output.of(peeringName));
        }

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

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

        /**
         * @param sku The SKU that defines the tier and kind of the peering.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The SKU that defines the tier and kind of the peering.
         * 
         * @return builder
         * 
         */
        public Builder sku(PeeringSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public PeeringArgs build() {
            if ($.kind == null) {
                throw new MissingRequiredPropertyException("PeeringArgs", "kind");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("PeeringArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("PeeringArgs", "sku");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy