sdk/java/src/main/java/com/pulumi/ovh/Me/outputs/InstallationTemplateCustomization.java
// *** 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.ovh.Me.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InstallationTemplateCustomization {
    /**
     * @return Template change log details.
     * 
     * @deprecated
     * field is not used anymore
     * 
     */
    @Deprecated /* field is not used anymore */
    private @Nullable String changeLog;
    /**
     * @return Set up the server using the provided hostname instead of the default hostname.
     * 
     */
    private @Nullable String customHostname;
    /**
     * @return Indicate the URL where your postinstall customisation script is located.
     * 
     */
    private @Nullable String postInstallationScriptLink;
    /**
     * @return indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is &#39;loh1Xee7eo OK OK OK UGh8Ang1Gu&#39;.
     * 
     */
    private @Nullable String postInstallationScriptReturn;
    /**
     * @return Rating.
     * 
     * @deprecated
     * field is not used anymore
     * 
     */
    @Deprecated /* field is not used anymore */
    private @Nullable Integer rating;
    /**
     * @return Name of the ssh key that should be installed. Password login will be disabled.
     * 
     */
    private @Nullable String sshKeyName;
    /**
     * @return Use the distribution&#39;s native kernel instead of the recommended OV
     * 
     */
    private @Nullable Boolean useDistributionKernel;

    private InstallationTemplateCustomization() {}
    /**
     * @return Template change log details.
     * 
     * @deprecated
     * field is not used anymore
     * 
     */
    @Deprecated /* field is not used anymore */
    public Optional<String> changeLog() {
        return Optional.ofNullable(this.changeLog);
    }
    /**
     * @return Set up the server using the provided hostname instead of the default hostname.
     * 
     */
    public Optional<String> customHostname() {
        return Optional.ofNullable(this.customHostname);
    }
    /**
     * @return Indicate the URL where your postinstall customisation script is located.
     * 
     */
    public Optional<String> postInstallationScriptLink() {
        return Optional.ofNullable(this.postInstallationScriptLink);
    }
    /**
     * @return indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is &#39;loh1Xee7eo OK OK OK UGh8Ang1Gu&#39;.
     * 
     */
    public Optional<String> postInstallationScriptReturn() {
        return Optional.ofNullable(this.postInstallationScriptReturn);
    }
    /**
     * @return Rating.
     * 
     * @deprecated
     * field is not used anymore
     * 
     */
    @Deprecated /* field is not used anymore */
    public Optional<Integer> rating() {
        return Optional.ofNullable(this.rating);
    }
    /**
     * @return Name of the ssh key that should be installed. Password login will be disabled.
     * 
     */
    public Optional<String> sshKeyName() {
        return Optional.ofNullable(this.sshKeyName);
    }
    /**
     * @return Use the distribution&#39;s native kernel instead of the recommended OV
     * 
     */
    public Optional<Boolean> useDistributionKernel() {
        return Optional.ofNullable(this.useDistributionKernel);
    }

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

    public static Builder builder(InstallationTemplateCustomization defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String changeLog;
        private @Nullable String customHostname;
        private @Nullable String postInstallationScriptLink;
        private @Nullable String postInstallationScriptReturn;
        private @Nullable Integer rating;
        private @Nullable String sshKeyName;
        private @Nullable Boolean useDistributionKernel;
        public Builder() {}
        public Builder(InstallationTemplateCustomization defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.changeLog = defaults.changeLog;
    	      this.customHostname = defaults.customHostname;
    	      this.postInstallationScriptLink = defaults.postInstallationScriptLink;
    	      this.postInstallationScriptReturn = defaults.postInstallationScriptReturn;
    	      this.rating = defaults.rating;
    	      this.sshKeyName = defaults.sshKeyName;
    	      this.useDistributionKernel = defaults.useDistributionKernel;
        }

        @CustomType.Setter
        public Builder changeLog(@Nullable String changeLog) {
            this.changeLog = changeLog;
            return this;
        }
        @CustomType.Setter
        public Builder customHostname(@Nullable String customHostname) {
            this.customHostname = customHostname;
            return this;
        }
        @CustomType.Setter
        public Builder postInstallationScriptLink(@Nullable String postInstallationScriptLink) {
            this.postInstallationScriptLink = postInstallationScriptLink;
            return this;
        }
        @CustomType.Setter
        public Builder postInstallationScriptReturn(@Nullable String postInstallationScriptReturn) {
            this.postInstallationScriptReturn = postInstallationScriptReturn;
            return this;
        }
        @CustomType.Setter
        public Builder rating(@Nullable Integer rating) {
            this.rating = rating;
            return this;
        }
        @CustomType.Setter
        public Builder sshKeyName(@Nullable String sshKeyName) {
            this.sshKeyName = sshKeyName;
            return this;
        }
        @CustomType.Setter
        public Builder useDistributionKernel(@Nullable Boolean useDistributionKernel) {
            this.useDistributionKernel = useDistributionKernel;
            return this;
        }
        public InstallationTemplateCustomization build() {
            final var o = new InstallationTemplateCustomization();
            o.changeLog = changeLog;
            o.customHostname = customHostname;
            o.postInstallationScriptLink = postInstallationScriptLink;
            o.postInstallationScriptReturn = postInstallationScriptReturn;
            o.rating = rating;
            o.sshKeyName = sshKeyName;
            o.useDistributionKernel = useDistributionKernel;
            return o;
        }
    }
}
