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

com.pulumi.azurenative.security.SecurityStandardArgs 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.azurenative.security.enums.StandardSupportedCloud;
import com.pulumi.azurenative.security.inputs.PartialAssessmentPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecurityStandardArgs Empty = new SecurityStandardArgs();

    /**
     * List of assessment keys to apply to standard scope.
     * 
     */
    @Import(name="assessments")
    private @Nullable Output> assessments;

    /**
     * @return List of assessment keys to apply to standard scope.
     * 
     */
    public Optional>> assessments() {
        return Optional.ofNullable(this.assessments);
    }

    /**
     * List of all standard supported clouds.
     * 
     */
    @Import(name="cloudProviders")
    private @Nullable Output>> cloudProviders;

    /**
     * @return List of all standard supported clouds.
     * 
     */
    public Optional>>> cloudProviders() {
        return Optional.ofNullable(this.cloudProviders);
    }

    /**
     * Description of the standard
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the standard
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Display name of the standard, equivalent to the standardId
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Display name of the standard, equivalent to the standardId
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The policy set definition id associated with the standard.
     * 
     */
    @Import(name="policySetDefinitionId")
    private @Nullable Output policySetDefinitionId;

    /**
     * @return The policy set definition id associated with the standard.
     * 
     */
    public Optional> policySetDefinitionId() {
        return Optional.ofNullable(this.policySetDefinitionId);
    }

    /**
     * The scope of the security standard. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The scope of the security standard. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
     * 
     */
    public Output scope() {
        return this.scope;
    }

    /**
     * The Security Standard key - unique key for the standard type
     * 
     */
    @Import(name="standardId")
    private @Nullable Output standardId;

    /**
     * @return The Security Standard key - unique key for the standard type
     * 
     */
    public Optional> standardId() {
        return Optional.ofNullable(this.standardId);
    }

    private SecurityStandardArgs() {}

    private SecurityStandardArgs(SecurityStandardArgs $) {
        this.assessments = $.assessments;
        this.cloudProviders = $.cloudProviders;
        this.description = $.description;
        this.displayName = $.displayName;
        this.policySetDefinitionId = $.policySetDefinitionId;
        this.scope = $.scope;
        this.standardId = $.standardId;
    }

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

    public static final class Builder {
        private SecurityStandardArgs $;

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

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

        /**
         * @param assessments List of assessment keys to apply to standard scope.
         * 
         * @return builder
         * 
         */
        public Builder assessments(@Nullable Output> assessments) {
            $.assessments = assessments;
            return this;
        }

        /**
         * @param assessments List of assessment keys to apply to standard scope.
         * 
         * @return builder
         * 
         */
        public Builder assessments(List assessments) {
            return assessments(Output.of(assessments));
        }

        /**
         * @param assessments List of assessment keys to apply to standard scope.
         * 
         * @return builder
         * 
         */
        public Builder assessments(PartialAssessmentPropertiesArgs... assessments) {
            return assessments(List.of(assessments));
        }

        /**
         * @param cloudProviders List of all standard supported clouds.
         * 
         * @return builder
         * 
         */
        public Builder cloudProviders(@Nullable Output>> cloudProviders) {
            $.cloudProviders = cloudProviders;
            return this;
        }

        /**
         * @param cloudProviders List of all standard supported clouds.
         * 
         * @return builder
         * 
         */
        public Builder cloudProviders(List> cloudProviders) {
            return cloudProviders(Output.of(cloudProviders));
        }

        /**
         * @param cloudProviders List of all standard supported clouds.
         * 
         * @return builder
         * 
         */
        public Builder cloudProviders(Either... cloudProviders) {
            return cloudProviders(List.of(cloudProviders));
        }

        /**
         * @param description Description of the standard
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the standard
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Display name of the standard, equivalent to the standardId
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Display name of the standard, equivalent to the standardId
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param policySetDefinitionId The policy set definition id associated with the standard.
         * 
         * @return builder
         * 
         */
        public Builder policySetDefinitionId(@Nullable Output policySetDefinitionId) {
            $.policySetDefinitionId = policySetDefinitionId;
            return this;
        }

        /**
         * @param policySetDefinitionId The policy set definition id associated with the standard.
         * 
         * @return builder
         * 
         */
        public Builder policySetDefinitionId(String policySetDefinitionId) {
            return policySetDefinitionId(Output.of(policySetDefinitionId));
        }

        /**
         * @param scope The scope of the security standard. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope of the security standard. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param standardId The Security Standard key - unique key for the standard type
         * 
         * @return builder
         * 
         */
        public Builder standardId(@Nullable Output standardId) {
            $.standardId = standardId;
            return this;
        }

        /**
         * @param standardId The Security Standard key - unique key for the standard type
         * 
         * @return builder
         * 
         */
        public Builder standardId(String standardId) {
            return standardId(Output.of(standardId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy