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

com.pulumi.azurenative.peering.PrefixArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PrefixArgs Empty = new PrefixArgs();

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

    /**
     * @return The name of the peering service.
     * 
     */
    public Output peeringServiceName() {
        return this.peeringServiceName;
    }

    /**
     * The peering service prefix key
     * 
     */
    @Import(name="peeringServicePrefixKey")
    private @Nullable Output peeringServicePrefixKey;

    /**
     * @return The peering service prefix key
     * 
     */
    public Optional> peeringServicePrefixKey() {
        return Optional.ofNullable(this.peeringServicePrefixKey);
    }

    /**
     * The prefix from which your traffic originates.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output prefix;

    /**
     * @return The prefix from which your traffic originates.
     * 
     */
    public Optional> prefix() {
        return Optional.ofNullable(this.prefix);
    }

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

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

    /**
     * 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;
    }

    private PrefixArgs() {}

    private PrefixArgs(PrefixArgs $) {
        this.peeringServiceName = $.peeringServiceName;
        this.peeringServicePrefixKey = $.peeringServicePrefixKey;
        this.prefix = $.prefix;
        this.prefixName = $.prefixName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private PrefixArgs $;

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

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

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

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

        /**
         * @param peeringServicePrefixKey The peering service prefix key
         * 
         * @return builder
         * 
         */
        public Builder peeringServicePrefixKey(@Nullable Output peeringServicePrefixKey) {
            $.peeringServicePrefixKey = peeringServicePrefixKey;
            return this;
        }

        /**
         * @param peeringServicePrefixKey The peering service prefix key
         * 
         * @return builder
         * 
         */
        public Builder peeringServicePrefixKey(String peeringServicePrefixKey) {
            return peeringServicePrefixKey(Output.of(peeringServicePrefixKey));
        }

        /**
         * @param prefix The prefix from which your traffic originates.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix The prefix from which your traffic originates.
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

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

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

        /**
         * @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));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy