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

com.pulumi.azurenative.batch.outputs.DeploymentConfigurationResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.batch.outputs;

import com.pulumi.azurenative.batch.outputs.CloudServiceConfigurationResponse;
import com.pulumi.azurenative.batch.outputs.VirtualMachineConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeploymentConfigurationResponse {
    /**
     * @return This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to 'UserSubscription'.
     * 
     */
    private @Nullable CloudServiceConfigurationResponse cloudServiceConfiguration;
    /**
     * @return This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.
     * 
     */
    private @Nullable VirtualMachineConfigurationResponse virtualMachineConfiguration;

    private DeploymentConfigurationResponse() {}
    /**
     * @return This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch account was created with its poolAllocationMode property set to 'UserSubscription'.
     * 
     */
    public Optional cloudServiceConfiguration() {
        return Optional.ofNullable(this.cloudServiceConfiguration);
    }
    /**
     * @return This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.
     * 
     */
    public Optional virtualMachineConfiguration() {
        return Optional.ofNullable(this.virtualMachineConfiguration);
    }

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

    public static Builder builder(DeploymentConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CloudServiceConfigurationResponse cloudServiceConfiguration;
        private @Nullable VirtualMachineConfigurationResponse virtualMachineConfiguration;
        public Builder() {}
        public Builder(DeploymentConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cloudServiceConfiguration = defaults.cloudServiceConfiguration;
    	      this.virtualMachineConfiguration = defaults.virtualMachineConfiguration;
        }

        @CustomType.Setter
        public Builder cloudServiceConfiguration(@Nullable CloudServiceConfigurationResponse cloudServiceConfiguration) {

            this.cloudServiceConfiguration = cloudServiceConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder virtualMachineConfiguration(@Nullable VirtualMachineConfigurationResponse virtualMachineConfiguration) {

            this.virtualMachineConfiguration = virtualMachineConfiguration;
            return this;
        }
        public DeploymentConfigurationResponse build() {
            final var _resultValue = new DeploymentConfigurationResponse();
            _resultValue.cloudServiceConfiguration = cloudServiceConfiguration;
            _resultValue.virtualMachineConfiguration = virtualMachineConfiguration;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy