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

com.pulumi.azurenative.compute.inputs.CloudServiceNetworkProfileArgs Maven / Gradle / Ivy

// *** 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.compute.inputs;

import com.pulumi.azurenative.compute.enums.CloudServiceSlotType;
import com.pulumi.azurenative.compute.inputs.LoadBalancerConfigurationArgs;
import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Network Profile for the cloud service.
 * 
 */
public final class CloudServiceNetworkProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final CloudServiceNetworkProfileArgs Empty = new CloudServiceNetworkProfileArgs();

    /**
     * List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.
     * 
     */
    @Import(name="loadBalancerConfigurations")
    private @Nullable Output> loadBalancerConfigurations;

    /**
     * @return List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.
     * 
     */
    public Optional>> loadBalancerConfigurations() {
        return Optional.ofNullable(this.loadBalancerConfigurations);
    }

    /**
     * Slot type for the cloud service.
     * Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
     * If not specified, the default value is Production.
     * 
     */
    @Import(name="slotType")
    private @Nullable Output> slotType;

    /**
     * @return Slot type for the cloud service.
     * Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
     * If not specified, the default value is Production.
     * 
     */
    public Optional>> slotType() {
        return Optional.ofNullable(this.slotType);
    }

    /**
     * The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.
     * 
     */
    @Import(name="swappableCloudService")
    private @Nullable Output swappableCloudService;

    /**
     * @return The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.
     * 
     */
    public Optional> swappableCloudService() {
        return Optional.ofNullable(this.swappableCloudService);
    }

    private CloudServiceNetworkProfileArgs() {}

    private CloudServiceNetworkProfileArgs(CloudServiceNetworkProfileArgs $) {
        this.loadBalancerConfigurations = $.loadBalancerConfigurations;
        this.slotType = $.slotType;
        this.swappableCloudService = $.swappableCloudService;
    }

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

    public static final class Builder {
        private CloudServiceNetworkProfileArgs $;

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

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

        /**
         * @param loadBalancerConfigurations List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerConfigurations(@Nullable Output> loadBalancerConfigurations) {
            $.loadBalancerConfigurations = loadBalancerConfigurations;
            return this;
        }

        /**
         * @param loadBalancerConfigurations List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerConfigurations(List loadBalancerConfigurations) {
            return loadBalancerConfigurations(Output.of(loadBalancerConfigurations));
        }

        /**
         * @param loadBalancerConfigurations List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerConfigurations(LoadBalancerConfigurationArgs... loadBalancerConfigurations) {
            return loadBalancerConfigurations(List.of(loadBalancerConfigurations));
        }

        /**
         * @param slotType Slot type for the cloud service.
         * Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
         * If not specified, the default value is Production.
         * 
         * @return builder
         * 
         */
        public Builder slotType(@Nullable Output> slotType) {
            $.slotType = slotType;
            return this;
        }

        /**
         * @param slotType Slot type for the cloud service.
         * Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
         * If not specified, the default value is Production.
         * 
         * @return builder
         * 
         */
        public Builder slotType(Either slotType) {
            return slotType(Output.of(slotType));
        }

        /**
         * @param slotType Slot type for the cloud service.
         * Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
         * If not specified, the default value is Production.
         * 
         * @return builder
         * 
         */
        public Builder slotType(String slotType) {
            return slotType(Either.ofLeft(slotType));
        }

        /**
         * @param slotType Slot type for the cloud service.
         * Possible values are <br /><br />**Production**<br /><br />**Staging**<br /><br />
         * If not specified, the default value is Production.
         * 
         * @return builder
         * 
         */
        public Builder slotType(CloudServiceSlotType slotType) {
            return slotType(Either.ofRight(slotType));
        }

        /**
         * @param swappableCloudService The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.
         * 
         * @return builder
         * 
         */
        public Builder swappableCloudService(@Nullable Output swappableCloudService) {
            $.swappableCloudService = swappableCloudService;
            return this;
        }

        /**
         * @param swappableCloudService The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown.
         * 
         * @return builder
         * 
         */
        public Builder swappableCloudService(SubResourceArgs swappableCloudService) {
            return swappableCloudService(Output.of(swappableCloudService));
        }

        public CloudServiceNetworkProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy