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

com.pulumi.azurenative.azurefleet.inputs.ProxyAgentSettingsArgs 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.azurefleet.inputs;

import com.pulumi.azurenative.azurefleet.enums.Mode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies ProxyAgent settings while creating the virtual machine. Minimum
 * api-version: 2023-09-01.
 * 
 */
public final class ProxyAgentSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ProxyAgentSettingsArgs Empty = new ProxyAgentSettingsArgs();

    /**
     * Specifies whether ProxyAgent feature should be enabled on the virtual machine
     * or virtual machine scale set.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Specifies whether ProxyAgent feature should be enabled on the virtual machine
     * or virtual machine scale set.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Increase the value of this property allows user to reset the key used for
     * securing communication channel between guest and host.
     * 
     */
    @Import(name="keyIncarnationId")
    private @Nullable Output keyIncarnationId;

    /**
     * @return Increase the value of this property allows user to reset the key used for
     * securing communication channel between guest and host.
     * 
     */
    public Optional> keyIncarnationId() {
        return Optional.ofNullable(this.keyIncarnationId);
    }

    /**
     * Specifies the mode that ProxyAgent will execute on if the feature is enabled.
     * ProxyAgent will start to audit or monitor but not enforce access control over
     * requests to host endpoints in Audit mode, while in Enforce mode it will enforce
     * access control. The default value is Enforce mode.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return Specifies the mode that ProxyAgent will execute on if the feature is enabled.
     * ProxyAgent will start to audit or monitor but not enforce access control over
     * requests to host endpoints in Audit mode, while in Enforce mode it will enforce
     * access control. The default value is Enforce mode.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    private ProxyAgentSettingsArgs() {}

    private ProxyAgentSettingsArgs(ProxyAgentSettingsArgs $) {
        this.enabled = $.enabled;
        this.keyIncarnationId = $.keyIncarnationId;
        this.mode = $.mode;
    }

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

    public static final class Builder {
        private ProxyAgentSettingsArgs $;

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

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

        /**
         * @param enabled Specifies whether ProxyAgent feature should be enabled on the virtual machine
         * or virtual machine scale set.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Specifies whether ProxyAgent feature should be enabled on the virtual machine
         * or virtual machine scale set.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param keyIncarnationId Increase the value of this property allows user to reset the key used for
         * securing communication channel between guest and host.
         * 
         * @return builder
         * 
         */
        public Builder keyIncarnationId(@Nullable Output keyIncarnationId) {
            $.keyIncarnationId = keyIncarnationId;
            return this;
        }

        /**
         * @param keyIncarnationId Increase the value of this property allows user to reset the key used for
         * securing communication channel between guest and host.
         * 
         * @return builder
         * 
         */
        public Builder keyIncarnationId(Integer keyIncarnationId) {
            return keyIncarnationId(Output.of(keyIncarnationId));
        }

        /**
         * @param mode Specifies the mode that ProxyAgent will execute on if the feature is enabled.
         * ProxyAgent will start to audit or monitor but not enforce access control over
         * requests to host endpoints in Audit mode, while in Enforce mode it will enforce
         * access control. The default value is Enforce mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Specifies the mode that ProxyAgent will execute on if the feature is enabled.
         * ProxyAgent will start to audit or monitor but not enforce access control over
         * requests to host endpoints in Audit mode, while in Enforce mode it will enforce
         * access control. The default value is Enforce mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode Specifies the mode that ProxyAgent will execute on if the feature is enabled.
         * ProxyAgent will start to audit or monitor but not enforce access control over
         * requests to host endpoints in Audit mode, while in Enforce mode it will enforce
         * access control. The default value is Enforce mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode Specifies the mode that ProxyAgent will execute on if the feature is enabled.
         * ProxyAgent will start to audit or monitor but not enforce access control over
         * requests to host endpoints in Audit mode, while in Enforce mode it will enforce
         * access control. The default value is Enforce mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(Mode mode) {
            return mode(Either.ofRight(mode));
        }

        public ProxyAgentSettingsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy