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

com.pulumi.azurenative.workloads.outputs.DeploymentWithOSConfigurationResponse 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.workloads.outputs;

import com.pulumi.azurenative.workloads.outputs.ExternalInstallationSoftwareConfigurationResponse;
import com.pulumi.azurenative.workloads.outputs.OsSapConfigurationResponse;
import com.pulumi.azurenative.workloads.outputs.SAPInstallWithoutOSConfigSoftwareConfigurationResponse;
import com.pulumi.azurenative.workloads.outputs.ServiceInitiatedSoftwareConfigurationResponse;
import com.pulumi.azurenative.workloads.outputs.SingleServerConfigurationResponse;
import com.pulumi.azurenative.workloads.outputs.ThreeTierConfigurationResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeploymentWithOSConfigurationResponse {
    /**
     * @return The geo-location where the SAP system is to be created.
     * 
     */
    private @Nullable String appLocation;
    /**
     * @return The configuration Type.
     * Expected value is 'DeploymentWithOSConfig'.
     * 
     */
    private String configurationType;
    /**
     * @return The infrastructure configuration.
     * 
     */
    private @Nullable Either infrastructureConfiguration;
    /**
     * @return The OS and SAP configuration.
     * 
     */
    private @Nullable OsSapConfigurationResponse osSapConfiguration;
    /**
     * @return The software configuration.
     * 
     */
    private @Nullable Object softwareConfiguration;

    private DeploymentWithOSConfigurationResponse() {}
    /**
     * @return The geo-location where the SAP system is to be created.
     * 
     */
    public Optional appLocation() {
        return Optional.ofNullable(this.appLocation);
    }
    /**
     * @return The configuration Type.
     * Expected value is 'DeploymentWithOSConfig'.
     * 
     */
    public String configurationType() {
        return this.configurationType;
    }
    /**
     * @return The infrastructure configuration.
     * 
     */
    public Optional> infrastructureConfiguration() {
        return Optional.ofNullable(this.infrastructureConfiguration);
    }
    /**
     * @return The OS and SAP configuration.
     * 
     */
    public Optional osSapConfiguration() {
        return Optional.ofNullable(this.osSapConfiguration);
    }
    /**
     * @return The software configuration.
     * 
     */
    public Optional softwareConfiguration() {
        return Optional.ofNullable(this.softwareConfiguration);
    }

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

    public static Builder builder(DeploymentWithOSConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String appLocation;
        private String configurationType;
        private @Nullable Either infrastructureConfiguration;
        private @Nullable OsSapConfigurationResponse osSapConfiguration;
        private @Nullable Object softwareConfiguration;
        public Builder() {}
        public Builder(DeploymentWithOSConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.appLocation = defaults.appLocation;
    	      this.configurationType = defaults.configurationType;
    	      this.infrastructureConfiguration = defaults.infrastructureConfiguration;
    	      this.osSapConfiguration = defaults.osSapConfiguration;
    	      this.softwareConfiguration = defaults.softwareConfiguration;
        }

        @CustomType.Setter
        public Builder appLocation(@Nullable String appLocation) {

            this.appLocation = appLocation;
            return this;
        }
        @CustomType.Setter
        public Builder configurationType(String configurationType) {
            if (configurationType == null) {
              throw new MissingRequiredPropertyException("DeploymentWithOSConfigurationResponse", "configurationType");
            }
            this.configurationType = configurationType;
            return this;
        }
        @CustomType.Setter
        public Builder infrastructureConfiguration(@Nullable Either infrastructureConfiguration) {

            this.infrastructureConfiguration = infrastructureConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder osSapConfiguration(@Nullable OsSapConfigurationResponse osSapConfiguration) {

            this.osSapConfiguration = osSapConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder softwareConfiguration(@Nullable Object softwareConfiguration) {

            this.softwareConfiguration = softwareConfiguration;
            return this;
        }
        public DeploymentWithOSConfigurationResponse build() {
            final var _resultValue = new DeploymentWithOSConfigurationResponse();
            _resultValue.appLocation = appLocation;
            _resultValue.configurationType = configurationType;
            _resultValue.infrastructureConfiguration = infrastructureConfiguration;
            _resultValue.osSapConfiguration = osSapConfiguration;
            _resultValue.softwareConfiguration = softwareConfiguration;
            return _resultValue;
        }
    }
}