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

com.pulumi.azurenative.maintenance.outputs.InputPatchConfigurationResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.maintenance.outputs.InputLinuxParametersResponse;
import com.pulumi.azurenative.maintenance.outputs.InputWindowsParametersResponse;
import com.pulumi.azurenative.maintenance.outputs.TaskPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InputPatchConfigurationResponse {
    /**
     * @return Input parameters specific to patching Linux machine. For Windows machines, do not pass this property.
     * 
     */
    private @Nullable InputLinuxParametersResponse linuxParameters;
    /**
     * @return List of post tasks. e.g. [{'source' :'runbook', 'taskScope': 'Resource', 'parameters': { 'arg1': 'value1'}}]
     * 
     */
    private @Nullable List postTasks;
    /**
     * @return List of pre tasks. e.g. [{'source' :'runbook', 'taskScope': 'Global', 'parameters': { 'arg1': 'value1'}}]
     * 
     */
    private @Nullable List preTasks;
    /**
     * @return Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.
     * 
     */
    private @Nullable String rebootSetting;
    /**
     * @return Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property.
     * 
     */
    private @Nullable InputWindowsParametersResponse windowsParameters;

    private InputPatchConfigurationResponse() {}
    /**
     * @return Input parameters specific to patching Linux machine. For Windows machines, do not pass this property.
     * 
     */
    public Optional linuxParameters() {
        return Optional.ofNullable(this.linuxParameters);
    }
    /**
     * @return List of post tasks. e.g. [{'source' :'runbook', 'taskScope': 'Resource', 'parameters': { 'arg1': 'value1'}}]
     * 
     */
    public List postTasks() {
        return this.postTasks == null ? List.of() : this.postTasks;
    }
    /**
     * @return List of pre tasks. e.g. [{'source' :'runbook', 'taskScope': 'Global', 'parameters': { 'arg1': 'value1'}}]
     * 
     */
    public List preTasks() {
        return this.preTasks == null ? List.of() : this.preTasks;
    }
    /**
     * @return Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.
     * 
     */
    public Optional rebootSetting() {
        return Optional.ofNullable(this.rebootSetting);
    }
    /**
     * @return Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property.
     * 
     */
    public Optional windowsParameters() {
        return Optional.ofNullable(this.windowsParameters);
    }

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

    public static Builder builder(InputPatchConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable InputLinuxParametersResponse linuxParameters;
        private @Nullable List postTasks;
        private @Nullable List preTasks;
        private @Nullable String rebootSetting;
        private @Nullable InputWindowsParametersResponse windowsParameters;
        public Builder() {}
        public Builder(InputPatchConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.linuxParameters = defaults.linuxParameters;
    	      this.postTasks = defaults.postTasks;
    	      this.preTasks = defaults.preTasks;
    	      this.rebootSetting = defaults.rebootSetting;
    	      this.windowsParameters = defaults.windowsParameters;
        }

        @CustomType.Setter
        public Builder linuxParameters(@Nullable InputLinuxParametersResponse linuxParameters) {

            this.linuxParameters = linuxParameters;
            return this;
        }
        @CustomType.Setter
        public Builder postTasks(@Nullable List postTasks) {

            this.postTasks = postTasks;
            return this;
        }
        public Builder postTasks(TaskPropertiesResponse... postTasks) {
            return postTasks(List.of(postTasks));
        }
        @CustomType.Setter
        public Builder preTasks(@Nullable List preTasks) {

            this.preTasks = preTasks;
            return this;
        }
        public Builder preTasks(TaskPropertiesResponse... preTasks) {
            return preTasks(List.of(preTasks));
        }
        @CustomType.Setter
        public Builder rebootSetting(@Nullable String rebootSetting) {

            this.rebootSetting = rebootSetting;
            return this;
        }
        @CustomType.Setter
        public Builder windowsParameters(@Nullable InputWindowsParametersResponse windowsParameters) {

            this.windowsParameters = windowsParameters;
            return this;
        }
        public InputPatchConfigurationResponse build() {
            final var _resultValue = new InputPatchConfigurationResponse();
            _resultValue.linuxParameters = linuxParameters;
            _resultValue.postTasks = postTasks;
            _resultValue.preTasks = preTasks;
            _resultValue.rebootSetting = rebootSetting;
            _resultValue.windowsParameters = windowsParameters;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy