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

com.pulumi.azurenative.network.ProfileArgs 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.network;

import com.pulumi.azurenative.network.enums.AllowedEndpointRecordType;
import com.pulumi.azurenative.network.enums.ProfileStatus;
import com.pulumi.azurenative.network.enums.TrafficRoutingMethod;
import com.pulumi.azurenative.network.enums.TrafficViewEnrollmentStatus;
import com.pulumi.azurenative.network.inputs.DnsConfigArgs;
import com.pulumi.azurenative.network.inputs.EndpointArgs;
import com.pulumi.azurenative.network.inputs.MonitorConfigArgs;
import com.pulumi.core.Either;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ProfileArgs Empty = new ProfileArgs();

    /**
     * The list of allowed endpoint record types.
     * 
     */
    @Import(name="allowedEndpointRecordTypes")
    private @Nullable Output>> allowedEndpointRecordTypes;

    /**
     * @return The list of allowed endpoint record types.
     * 
     */
    public Optional>>> allowedEndpointRecordTypes() {
        return Optional.ofNullable(this.allowedEndpointRecordTypes);
    }

    /**
     * The DNS settings of the Traffic Manager profile.
     * 
     */
    @Import(name="dnsConfig")
    private @Nullable Output dnsConfig;

    /**
     * @return The DNS settings of the Traffic Manager profile.
     * 
     */
    public Optional> dnsConfig() {
        return Optional.ofNullable(this.dnsConfig);
    }

    /**
     * The list of endpoints in the Traffic Manager profile.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    @Import(name="endpoints")
    private @Nullable Output> endpoints;

    /**
     * @return The list of endpoints in the Traffic Manager profile.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    public Optional>> endpoints() {
        return Optional.ofNullable(this.endpoints);
    }

    /**
     * Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The Azure Region where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Maximum number of endpoints to be returned for MultiValue routing type.
     * 
     */
    @Import(name="maxReturn")
    private @Nullable Output maxReturn;

    /**
     * @return Maximum number of endpoints to be returned for MultiValue routing type.
     * 
     */
    public Optional> maxReturn() {
        return Optional.ofNullable(this.maxReturn);
    }

    /**
     * The endpoint monitoring settings of the Traffic Manager profile.
     * 
     */
    @Import(name="monitorConfig")
    private @Nullable Output monitorConfig;

    /**
     * @return The endpoint monitoring settings of the Traffic Manager profile.
     * 
     */
    public Optional> monitorConfig() {
        return Optional.ofNullable(this.monitorConfig);
    }

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

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

    /**
     * The name of the Traffic Manager profile.
     * 
     */
    @Import(name="profileName")
    private @Nullable Output profileName;

    /**
     * @return The name of the Traffic Manager profile.
     * 
     */
    public Optional> profileName() {
        return Optional.ofNullable(this.profileName);
    }

    /**
     * The status of the Traffic Manager profile.
     * 
     */
    @Import(name="profileStatus")
    private @Nullable Output> profileStatus;

    /**
     * @return The status of the Traffic Manager profile.
     * 
     */
    public Optional>> profileStatus() {
        return Optional.ofNullable(this.profileStatus);
    }

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

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

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

    /**
     * The traffic routing method of the Traffic Manager profile.
     * 
     */
    @Import(name="trafficRoutingMethod")
    private @Nullable Output> trafficRoutingMethod;

    /**
     * @return The traffic routing method of the Traffic Manager profile.
     * 
     */
    public Optional>> trafficRoutingMethod() {
        return Optional.ofNullable(this.trafficRoutingMethod);
    }

    /**
     * Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
     * 
     */
    @Import(name="trafficViewEnrollmentStatus")
    private @Nullable Output> trafficViewEnrollmentStatus;

    /**
     * @return Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
     * 
     */
    public Optional>> trafficViewEnrollmentStatus() {
        return Optional.ofNullable(this.trafficViewEnrollmentStatus);
    }

    /**
     * The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private ProfileArgs() {}

    private ProfileArgs(ProfileArgs $) {
        this.allowedEndpointRecordTypes = $.allowedEndpointRecordTypes;
        this.dnsConfig = $.dnsConfig;
        this.endpoints = $.endpoints;
        this.id = $.id;
        this.location = $.location;
        this.maxReturn = $.maxReturn;
        this.monitorConfig = $.monitorConfig;
        this.name = $.name;
        this.profileName = $.profileName;
        this.profileStatus = $.profileStatus;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.trafficRoutingMethod = $.trafficRoutingMethod;
        this.trafficViewEnrollmentStatus = $.trafficViewEnrollmentStatus;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ProfileArgs $;

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

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

        /**
         * @param allowedEndpointRecordTypes The list of allowed endpoint record types.
         * 
         * @return builder
         * 
         */
        public Builder allowedEndpointRecordTypes(@Nullable Output>> allowedEndpointRecordTypes) {
            $.allowedEndpointRecordTypes = allowedEndpointRecordTypes;
            return this;
        }

        /**
         * @param allowedEndpointRecordTypes The list of allowed endpoint record types.
         * 
         * @return builder
         * 
         */
        public Builder allowedEndpointRecordTypes(List> allowedEndpointRecordTypes) {
            return allowedEndpointRecordTypes(Output.of(allowedEndpointRecordTypes));
        }

        /**
         * @param allowedEndpointRecordTypes The list of allowed endpoint record types.
         * 
         * @return builder
         * 
         */
        public Builder allowedEndpointRecordTypes(Either... allowedEndpointRecordTypes) {
            return allowedEndpointRecordTypes(List.of(allowedEndpointRecordTypes));
        }

        /**
         * @param dnsConfig The DNS settings of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder dnsConfig(@Nullable Output dnsConfig) {
            $.dnsConfig = dnsConfig;
            return this;
        }

        /**
         * @param dnsConfig The DNS settings of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder dnsConfig(DnsConfigArgs dnsConfig) {
            return dnsConfig(Output.of(dnsConfig));
        }

        /**
         * @param endpoints The list of endpoints in the Traffic Manager profile.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder endpoints(@Nullable Output> endpoints) {
            $.endpoints = endpoints;
            return this;
        }

        /**
         * @param endpoints The list of endpoints in the Traffic Manager profile.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder endpoints(List endpoints) {
            return endpoints(Output.of(endpoints));
        }

        /**
         * @param endpoints The list of endpoints in the Traffic Manager profile.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder endpoints(EndpointArgs... endpoints) {
            return endpoints(List.of(endpoints));
        }

        /**
         * @param id Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

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

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

        /**
         * @param maxReturn Maximum number of endpoints to be returned for MultiValue routing type.
         * 
         * @return builder
         * 
         */
        public Builder maxReturn(@Nullable Output maxReturn) {
            $.maxReturn = maxReturn;
            return this;
        }

        /**
         * @param maxReturn Maximum number of endpoints to be returned for MultiValue routing type.
         * 
         * @return builder
         * 
         */
        public Builder maxReturn(Double maxReturn) {
            return maxReturn(Output.of(maxReturn));
        }

        /**
         * @param monitorConfig The endpoint monitoring settings of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder monitorConfig(@Nullable Output monitorConfig) {
            $.monitorConfig = monitorConfig;
            return this;
        }

        /**
         * @param monitorConfig The endpoint monitoring settings of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder monitorConfig(MonitorConfigArgs monitorConfig) {
            return monitorConfig(Output.of(monitorConfig));
        }

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

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

        /**
         * @param profileName The name of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder profileName(@Nullable Output profileName) {
            $.profileName = profileName;
            return this;
        }

        /**
         * @param profileName The name of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder profileName(String profileName) {
            return profileName(Output.of(profileName));
        }

        /**
         * @param profileStatus The status of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder profileStatus(@Nullable Output> profileStatus) {
            $.profileStatus = profileStatus;
            return this;
        }

        /**
         * @param profileStatus The status of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder profileStatus(Either profileStatus) {
            return profileStatus(Output.of(profileStatus));
        }

        /**
         * @param profileStatus The status of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder profileStatus(String profileStatus) {
            return profileStatus(Either.ofLeft(profileStatus));
        }

        /**
         * @param profileStatus The status of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder profileStatus(ProfileStatus profileStatus) {
            return profileStatus(Either.ofRight(profileStatus));
        }

        /**
         * @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 tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

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

        /**
         * @param trafficRoutingMethod The traffic routing method of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficRoutingMethod(@Nullable Output> trafficRoutingMethod) {
            $.trafficRoutingMethod = trafficRoutingMethod;
            return this;
        }

        /**
         * @param trafficRoutingMethod The traffic routing method of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficRoutingMethod(Either trafficRoutingMethod) {
            return trafficRoutingMethod(Output.of(trafficRoutingMethod));
        }

        /**
         * @param trafficRoutingMethod The traffic routing method of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficRoutingMethod(String trafficRoutingMethod) {
            return trafficRoutingMethod(Either.ofLeft(trafficRoutingMethod));
        }

        /**
         * @param trafficRoutingMethod The traffic routing method of the Traffic Manager profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficRoutingMethod(TrafficRoutingMethod trafficRoutingMethod) {
            return trafficRoutingMethod(Either.ofRight(trafficRoutingMethod));
        }

        /**
         * @param trafficViewEnrollmentStatus Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficViewEnrollmentStatus(@Nullable Output> trafficViewEnrollmentStatus) {
            $.trafficViewEnrollmentStatus = trafficViewEnrollmentStatus;
            return this;
        }

        /**
         * @param trafficViewEnrollmentStatus Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficViewEnrollmentStatus(Either trafficViewEnrollmentStatus) {
            return trafficViewEnrollmentStatus(Output.of(trafficViewEnrollmentStatus));
        }

        /**
         * @param trafficViewEnrollmentStatus Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficViewEnrollmentStatus(String trafficViewEnrollmentStatus) {
            return trafficViewEnrollmentStatus(Either.ofLeft(trafficViewEnrollmentStatus));
        }

        /**
         * @param trafficViewEnrollmentStatus Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
         * 
         * @return builder
         * 
         */
        public Builder trafficViewEnrollmentStatus(TrafficViewEnrollmentStatus trafficViewEnrollmentStatus) {
            return trafficViewEnrollmentStatus(Either.ofRight(trafficViewEnrollmentStatus));
        }

        /**
         * @param type The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy