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

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

The 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.AssessmentType;
import com.pulumi.azurenative.security.enums.Categories;
import com.pulumi.azurenative.security.enums.ImplementationEffort;
import com.pulumi.azurenative.security.enums.Severity;
import com.pulumi.azurenative.security.enums.Threats;
import com.pulumi.azurenative.security.enums.UserImpact;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AssessmentsMetadataSubscriptionArgs Empty = new AssessmentsMetadataSubscriptionArgs();

    /**
     * The Assessment Key - Unique key for the assessment type
     * 
     */
    @Import(name="assessmentMetadataName")
    private @Nullable Output assessmentMetadataName;

    /**
     * @return The Assessment Key - Unique key for the assessment type
     * 
     */
    public Optional> assessmentMetadataName() {
        return Optional.ofNullable(this.assessmentMetadataName);
    }

    /**
     * BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
     * 
     */
    @Import(name="assessmentType", required=true)
    private Output> assessmentType;

    /**
     * @return BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
     * 
     */
    public Output> assessmentType() {
        return this.assessmentType;
    }

    @Import(name="categories")
    private @Nullable Output>> categories;

    public Optional>>> categories() {
        return Optional.ofNullable(this.categories);
    }

    /**
     * Human readable description of the assessment
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Human readable description of the assessment
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * User friendly display name of the assessment
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return User friendly display name of the assessment
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * The implementation effort required to remediate this assessment
     * 
     */
    @Import(name="implementationEffort")
    private @Nullable Output> implementationEffort;

    /**
     * @return The implementation effort required to remediate this assessment
     * 
     */
    public Optional>> implementationEffort() {
        return Optional.ofNullable(this.implementationEffort);
    }

    /**
     * True if this assessment is in preview release status
     * 
     */
    @Import(name="preview")
    private @Nullable Output preview;

    /**
     * @return True if this assessment is in preview release status
     * 
     */
    public Optional> preview() {
        return Optional.ofNullable(this.preview);
    }

    /**
     * Human readable description of what you should do to mitigate this security issue
     * 
     */
    @Import(name="remediationDescription")
    private @Nullable Output remediationDescription;

    /**
     * @return Human readable description of what you should do to mitigate this security issue
     * 
     */
    public Optional> remediationDescription() {
        return Optional.ofNullable(this.remediationDescription);
    }

    /**
     * The severity level of the assessment
     * 
     */
    @Import(name="severity", required=true)
    private Output> severity;

    /**
     * @return The severity level of the assessment
     * 
     */
    public Output> severity() {
        return this.severity;
    }

    @Import(name="threats")
    private @Nullable Output>> threats;

    public Optional>>> threats() {
        return Optional.ofNullable(this.threats);
    }

    /**
     * The user impact of the assessment
     * 
     */
    @Import(name="userImpact")
    private @Nullable Output> userImpact;

    /**
     * @return The user impact of the assessment
     * 
     */
    public Optional>> userImpact() {
        return Optional.ofNullable(this.userImpact);
    }

    private AssessmentsMetadataSubscriptionArgs() {}

    private AssessmentsMetadataSubscriptionArgs(AssessmentsMetadataSubscriptionArgs $) {
        this.assessmentMetadataName = $.assessmentMetadataName;
        this.assessmentType = $.assessmentType;
        this.categories = $.categories;
        this.description = $.description;
        this.displayName = $.displayName;
        this.implementationEffort = $.implementationEffort;
        this.preview = $.preview;
        this.remediationDescription = $.remediationDescription;
        this.severity = $.severity;
        this.threats = $.threats;
        this.userImpact = $.userImpact;
    }

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

    public static final class Builder {
        private AssessmentsMetadataSubscriptionArgs $;

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

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

        /**
         * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type
         * 
         * @return builder
         * 
         */
        public Builder assessmentMetadataName(@Nullable Output assessmentMetadataName) {
            $.assessmentMetadataName = assessmentMetadataName;
            return this;
        }

        /**
         * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type
         * 
         * @return builder
         * 
         */
        public Builder assessmentMetadataName(String assessmentMetadataName) {
            return assessmentMetadataName(Output.of(assessmentMetadataName));
        }

        /**
         * @param assessmentType BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
         * 
         * @return builder
         * 
         */
        public Builder assessmentType(Output> assessmentType) {
            $.assessmentType = assessmentType;
            return this;
        }

        /**
         * @param assessmentType BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
         * 
         * @return builder
         * 
         */
        public Builder assessmentType(Either assessmentType) {
            return assessmentType(Output.of(assessmentType));
        }

        /**
         * @param assessmentType BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
         * 
         * @return builder
         * 
         */
        public Builder assessmentType(String assessmentType) {
            return assessmentType(Either.ofLeft(assessmentType));
        }

        /**
         * @param assessmentType BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
         * 
         * @return builder
         * 
         */
        public Builder assessmentType(AssessmentType assessmentType) {
            return assessmentType(Either.ofRight(assessmentType));
        }

        public Builder categories(@Nullable Output>> categories) {
            $.categories = categories;
            return this;
        }

        public Builder categories(List> categories) {
            return categories(Output.of(categories));
        }

        public Builder categories(Either... categories) {
            return categories(List.of(categories));
        }

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

        /**
         * @param description Human readable description of the assessment
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName User friendly display name of the assessment
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName User friendly display name of the assessment
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param implementationEffort The implementation effort required to remediate this assessment
         * 
         * @return builder
         * 
         */
        public Builder implementationEffort(@Nullable Output> implementationEffort) {
            $.implementationEffort = implementationEffort;
            return this;
        }

        /**
         * @param implementationEffort The implementation effort required to remediate this assessment
         * 
         * @return builder
         * 
         */
        public Builder implementationEffort(Either implementationEffort) {
            return implementationEffort(Output.of(implementationEffort));
        }

        /**
         * @param implementationEffort The implementation effort required to remediate this assessment
         * 
         * @return builder
         * 
         */
        public Builder implementationEffort(String implementationEffort) {
            return implementationEffort(Either.ofLeft(implementationEffort));
        }

        /**
         * @param implementationEffort The implementation effort required to remediate this assessment
         * 
         * @return builder
         * 
         */
        public Builder implementationEffort(ImplementationEffort implementationEffort) {
            return implementationEffort(Either.ofRight(implementationEffort));
        }

        /**
         * @param preview True if this assessment is in preview release status
         * 
         * @return builder
         * 
         */
        public Builder preview(@Nullable Output preview) {
            $.preview = preview;
            return this;
        }

        /**
         * @param preview True if this assessment is in preview release status
         * 
         * @return builder
         * 
         */
        public Builder preview(Boolean preview) {
            return preview(Output.of(preview));
        }

        /**
         * @param remediationDescription Human readable description of what you should do to mitigate this security issue
         * 
         * @return builder
         * 
         */
        public Builder remediationDescription(@Nullable Output remediationDescription) {
            $.remediationDescription = remediationDescription;
            return this;
        }

        /**
         * @param remediationDescription Human readable description of what you should do to mitigate this security issue
         * 
         * @return builder
         * 
         */
        public Builder remediationDescription(String remediationDescription) {
            return remediationDescription(Output.of(remediationDescription));
        }

        /**
         * @param severity The severity level of the assessment
         * 
         * @return builder
         * 
         */
        public Builder severity(Output> severity) {
            $.severity = severity;
            return this;
        }

        /**
         * @param severity The severity level of the assessment
         * 
         * @return builder
         * 
         */
        public Builder severity(Either severity) {
            return severity(Output.of(severity));
        }

        /**
         * @param severity The severity level of the assessment
         * 
         * @return builder
         * 
         */
        public Builder severity(String severity) {
            return severity(Either.ofLeft(severity));
        }

        /**
         * @param severity The severity level of the assessment
         * 
         * @return builder
         * 
         */
        public Builder severity(Severity severity) {
            return severity(Either.ofRight(severity));
        }

        public Builder threats(@Nullable Output>> threats) {
            $.threats = threats;
            return this;
        }

        public Builder threats(List> threats) {
            return threats(Output.of(threats));
        }

        public Builder threats(Either... threats) {
            return threats(List.of(threats));
        }

        /**
         * @param userImpact The user impact of the assessment
         * 
         * @return builder
         * 
         */
        public Builder userImpact(@Nullable Output> userImpact) {
            $.userImpact = userImpact;
            return this;
        }

        /**
         * @param userImpact The user impact of the assessment
         * 
         * @return builder
         * 
         */
        public Builder userImpact(Either userImpact) {
            return userImpact(Output.of(userImpact));
        }

        /**
         * @param userImpact The user impact of the assessment
         * 
         * @return builder
         * 
         */
        public Builder userImpact(String userImpact) {
            return userImpact(Either.ofLeft(userImpact));
        }

        /**
         * @param userImpact The user impact of the assessment
         * 
         * @return builder
         * 
         */
        public Builder userImpact(UserImpact userImpact) {
            return userImpact(Either.ofRight(userImpact));
        }

        public AssessmentsMetadataSubscriptionArgs build() {
            if ($.assessmentType == null) {
                throw new MissingRequiredPropertyException("AssessmentsMetadataSubscriptionArgs", "assessmentType");
            }
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("AssessmentsMetadataSubscriptionArgs", "displayName");
            }
            if ($.severity == null) {
                throw new MissingRequiredPropertyException("AssessmentsMetadataSubscriptionArgs", "severity");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy