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

com.pulumi.azurenative.desktopvirtualization.inputs.AgentUpdatePropertiesArgs Maven / Gradle / Ivy

// *** 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.desktopvirtualization.inputs;

import com.pulumi.azurenative.desktopvirtualization.enums.SessionHostComponentUpdateType;
import com.pulumi.azurenative.desktopvirtualization.inputs.MaintenanceWindowPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The session host configuration for updating agent, monitoring agent, and stack component.
 * 
 */
public final class AgentUpdatePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final AgentUpdatePropertiesArgs Empty = new AgentUpdatePropertiesArgs();

    /**
     * Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.
     * 
     */
    @Import(name="maintenanceWindowTimeZone")
    private @Nullable Output maintenanceWindowTimeZone;

    /**
     * @return Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.
     * 
     */
    public Optional> maintenanceWindowTimeZone() {
        return Optional.ofNullable(this.maintenanceWindowTimeZone);
    }

    /**
     * List of maintenance windows. Maintenance windows are 2 hours long.
     * 
     */
    @Import(name="maintenanceWindows")
    private @Nullable Output> maintenanceWindows;

    /**
     * @return List of maintenance windows. Maintenance windows are 2 hours long.
     * 
     */
    public Optional>> maintenanceWindows() {
        return Optional.ofNullable(this.maintenanceWindows);
    }

    /**
     * The type of maintenance for session host components.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return The type of maintenance for session host components.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * Whether to use localTime of the virtual machine.
     * 
     */
    @Import(name="useSessionHostLocalTime")
    private @Nullable Output useSessionHostLocalTime;

    /**
     * @return Whether to use localTime of the virtual machine.
     * 
     */
    public Optional> useSessionHostLocalTime() {
        return Optional.ofNullable(this.useSessionHostLocalTime);
    }

    private AgentUpdatePropertiesArgs() {}

    private AgentUpdatePropertiesArgs(AgentUpdatePropertiesArgs $) {
        this.maintenanceWindowTimeZone = $.maintenanceWindowTimeZone;
        this.maintenanceWindows = $.maintenanceWindows;
        this.type = $.type;
        this.useSessionHostLocalTime = $.useSessionHostLocalTime;
    }

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

    public static final class Builder {
        private AgentUpdatePropertiesArgs $;

        public Builder() {
            $ = new AgentUpdatePropertiesArgs();
        }

        public Builder(AgentUpdatePropertiesArgs defaults) {
            $ = new AgentUpdatePropertiesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param maintenanceWindowTimeZone Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindowTimeZone(@Nullable Output maintenanceWindowTimeZone) {
            $.maintenanceWindowTimeZone = maintenanceWindowTimeZone;
            return this;
        }

        /**
         * @param maintenanceWindowTimeZone Time zone for maintenance as defined in https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.findsystemtimezonebyid?view=net-5.0. Must be set if useLocalTime is true.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindowTimeZone(String maintenanceWindowTimeZone) {
            return maintenanceWindowTimeZone(Output.of(maintenanceWindowTimeZone));
        }

        /**
         * @param maintenanceWindows List of maintenance windows. Maintenance windows are 2 hours long.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindows(@Nullable Output> maintenanceWindows) {
            $.maintenanceWindows = maintenanceWindows;
            return this;
        }

        /**
         * @param maintenanceWindows List of maintenance windows. Maintenance windows are 2 hours long.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindows(List maintenanceWindows) {
            return maintenanceWindows(Output.of(maintenanceWindows));
        }

        /**
         * @param maintenanceWindows List of maintenance windows. Maintenance windows are 2 hours long.
         * 
         * @return builder
         * 
         */
        public Builder maintenanceWindows(MaintenanceWindowPropertiesArgs... maintenanceWindows) {
            return maintenanceWindows(List.of(maintenanceWindows));
        }

        /**
         * @param type The type of maintenance for session host components.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of maintenance for session host components.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type The type of maintenance for session host components.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type The type of maintenance for session host components.
         * 
         * @return builder
         * 
         */
        public Builder type(SessionHostComponentUpdateType type) {
            return type(Either.ofRight(type));
        }

        /**
         * @param useSessionHostLocalTime Whether to use localTime of the virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder useSessionHostLocalTime(@Nullable Output useSessionHostLocalTime) {
            $.useSessionHostLocalTime = useSessionHostLocalTime;
            return this;
        }

        /**
         * @param useSessionHostLocalTime Whether to use localTime of the virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder useSessionHostLocalTime(Boolean useSessionHostLocalTime) {
            return useSessionHostLocalTime(Output.of(useSessionHostLocalTime));
        }

        public AgentUpdatePropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy