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

com.pulumi.spotinst.outputs.ElastigroupAzureV3Extension Maven / Gradle / Ivy

The 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.spotinst.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.spotinst.outputs.ElastigroupAzureV3ExtensionProtectedSettingsFromKeyVault;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ElastigroupAzureV3Extension {
    private String apiVersion;
    private @Nullable Boolean enableAutomaticUpgrade;
    private Boolean minorVersionAutoUpgrade;
    private String name;
    private @Nullable Map protectedSettings;
    private @Nullable ElastigroupAzureV3ExtensionProtectedSettingsFromKeyVault protectedSettingsFromKeyVault;
    private @Nullable Map publicSettings;
    private String publisher;
    private String type;

    private ElastigroupAzureV3Extension() {}
    public String apiVersion() {
        return this.apiVersion;
    }
    public Optional enableAutomaticUpgrade() {
        return Optional.ofNullable(this.enableAutomaticUpgrade);
    }
    public Boolean minorVersionAutoUpgrade() {
        return this.minorVersionAutoUpgrade;
    }
    public String name() {
        return this.name;
    }
    public Map protectedSettings() {
        return this.protectedSettings == null ? Map.of() : this.protectedSettings;
    }
    public Optional protectedSettingsFromKeyVault() {
        return Optional.ofNullable(this.protectedSettingsFromKeyVault);
    }
    public Map publicSettings() {
        return this.publicSettings == null ? Map.of() : this.publicSettings;
    }
    public String publisher() {
        return this.publisher;
    }
    public String type() {
        return this.type;
    }

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

    public static Builder builder(ElastigroupAzureV3Extension defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String apiVersion;
        private @Nullable Boolean enableAutomaticUpgrade;
        private Boolean minorVersionAutoUpgrade;
        private String name;
        private @Nullable Map protectedSettings;
        private @Nullable ElastigroupAzureV3ExtensionProtectedSettingsFromKeyVault protectedSettingsFromKeyVault;
        private @Nullable Map publicSettings;
        private String publisher;
        private String type;
        public Builder() {}
        public Builder(ElastigroupAzureV3Extension defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiVersion = defaults.apiVersion;
    	      this.enableAutomaticUpgrade = defaults.enableAutomaticUpgrade;
    	      this.minorVersionAutoUpgrade = defaults.minorVersionAutoUpgrade;
    	      this.name = defaults.name;
    	      this.protectedSettings = defaults.protectedSettings;
    	      this.protectedSettingsFromKeyVault = defaults.protectedSettingsFromKeyVault;
    	      this.publicSettings = defaults.publicSettings;
    	      this.publisher = defaults.publisher;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder apiVersion(String apiVersion) {
            if (apiVersion == null) {
              throw new MissingRequiredPropertyException("ElastigroupAzureV3Extension", "apiVersion");
            }
            this.apiVersion = apiVersion;
            return this;
        }
        @CustomType.Setter
        public Builder enableAutomaticUpgrade(@Nullable Boolean enableAutomaticUpgrade) {

            this.enableAutomaticUpgrade = enableAutomaticUpgrade;
            return this;
        }
        @CustomType.Setter
        public Builder minorVersionAutoUpgrade(Boolean minorVersionAutoUpgrade) {
            if (minorVersionAutoUpgrade == null) {
              throw new MissingRequiredPropertyException("ElastigroupAzureV3Extension", "minorVersionAutoUpgrade");
            }
            this.minorVersionAutoUpgrade = minorVersionAutoUpgrade;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ElastigroupAzureV3Extension", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder protectedSettings(@Nullable Map protectedSettings) {

            this.protectedSettings = protectedSettings;
            return this;
        }
        @CustomType.Setter
        public Builder protectedSettingsFromKeyVault(@Nullable ElastigroupAzureV3ExtensionProtectedSettingsFromKeyVault protectedSettingsFromKeyVault) {

            this.protectedSettingsFromKeyVault = protectedSettingsFromKeyVault;
            return this;
        }
        @CustomType.Setter
        public Builder publicSettings(@Nullable Map publicSettings) {

            this.publicSettings = publicSettings;
            return this;
        }
        @CustomType.Setter
        public Builder publisher(String publisher) {
            if (publisher == null) {
              throw new MissingRequiredPropertyException("ElastigroupAzureV3Extension", "publisher");
            }
            this.publisher = publisher;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ElastigroupAzureV3Extension", "type");
            }
            this.type = type;
            return this;
        }
        public ElastigroupAzureV3Extension build() {
            final var _resultValue = new ElastigroupAzureV3Extension();
            _resultValue.apiVersion = apiVersion;
            _resultValue.enableAutomaticUpgrade = enableAutomaticUpgrade;
            _resultValue.minorVersionAutoUpgrade = minorVersionAutoUpgrade;
            _resultValue.name = name;
            _resultValue.protectedSettings = protectedSettings;
            _resultValue.protectedSettingsFromKeyVault = protectedSettingsFromKeyVault;
            _resultValue.publicSettings = publicSettings;
            _resultValue.publisher = publisher;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy