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

com.pulumi.azurenative.security.WorkspaceSettingArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.security;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class WorkspaceSettingArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkspaceSettingArgs Empty = new WorkspaceSettingArgs();

    /**
     * All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope
     * 
     */
    public Output scope() {
        return this.scope;
    }

    /**
     * The full Azure ID of the workspace to save the data in
     * 
     */
    @Import(name="workspaceId", required=true)
    private Output workspaceId;

    /**
     * @return The full Azure ID of the workspace to save the data in
     * 
     */
    public Output workspaceId() {
        return this.workspaceId;
    }

    /**
     * Name of the security setting
     * 
     */
    @Import(name="workspaceSettingName")
    private @Nullable Output workspaceSettingName;

    /**
     * @return Name of the security setting
     * 
     */
    public Optional> workspaceSettingName() {
        return Optional.ofNullable(this.workspaceSettingName);
    }

    private WorkspaceSettingArgs() {}

    private WorkspaceSettingArgs(WorkspaceSettingArgs $) {
        this.scope = $.scope;
        this.workspaceId = $.workspaceId;
        this.workspaceSettingName = $.workspaceSettingName;
    }

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

    public static final class Builder {
        private WorkspaceSettingArgs $;

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

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

        /**
         * @param scope All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param workspaceId The full Azure ID of the workspace to save the data in
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(Output workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId The full Azure ID of the workspace to save the data in
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        /**
         * @param workspaceSettingName Name of the security setting
         * 
         * @return builder
         * 
         */
        public Builder workspaceSettingName(@Nullable Output workspaceSettingName) {
            $.workspaceSettingName = workspaceSettingName;
            return this;
        }

        /**
         * @param workspaceSettingName Name of the security setting
         * 
         * @return builder
         * 
         */
        public Builder workspaceSettingName(String workspaceSettingName) {
            return workspaceSettingName(Output.of(workspaceSettingName));
        }

        public WorkspaceSettingArgs build() {
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("WorkspaceSettingArgs", "scope");
            }
            if ($.workspaceId == null) {
                throw new MissingRequiredPropertyException("WorkspaceSettingArgs", "workspaceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy