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

com.pulumi.azure.securitycenter.inputs.AssessmentState 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.azure.securitycenter.inputs;

import com.pulumi.azure.securitycenter.inputs.AssessmentStatusArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AssessmentState Empty = new AssessmentState();

    /**
     * A map of additional data to associate with the assessment.
     * 
     */
    @Import(name="additionalData")
    private @Nullable Output> additionalData;

    /**
     * @return A map of additional data to associate with the assessment.
     * 
     */
    public Optional>> additionalData() {
        return Optional.ofNullable(this.additionalData);
    }

    /**
     * The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.
     * 
     */
    @Import(name="assessmentPolicyId")
    private @Nullable Output assessmentPolicyId;

    /**
     * @return The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.
     * 
     */
    public Optional> assessmentPolicyId() {
        return Optional.ofNullable(this.assessmentPolicyId);
    }

    /**
     * A `status` block as defined below.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return A `status` block as defined below.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * The ID of the target resource. Changing this forces a new security Assessment to be created.
     * 
     */
    @Import(name="targetResourceId")
    private @Nullable Output targetResourceId;

    /**
     * @return The ID of the target resource. Changing this forces a new security Assessment to be created.
     * 
     */
    public Optional> targetResourceId() {
        return Optional.ofNullable(this.targetResourceId);
    }

    private AssessmentState() {}

    private AssessmentState(AssessmentState $) {
        this.additionalData = $.additionalData;
        this.assessmentPolicyId = $.assessmentPolicyId;
        this.status = $.status;
        this.targetResourceId = $.targetResourceId;
    }

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

    public static final class Builder {
        private AssessmentState $;

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

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

        /**
         * @param additionalData A map of additional data to associate with the assessment.
         * 
         * @return builder
         * 
         */
        public Builder additionalData(@Nullable Output> additionalData) {
            $.additionalData = additionalData;
            return this;
        }

        /**
         * @param additionalData A map of additional data to associate with the assessment.
         * 
         * @return builder
         * 
         */
        public Builder additionalData(Map additionalData) {
            return additionalData(Output.of(additionalData));
        }

        /**
         * @param assessmentPolicyId The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.
         * 
         * @return builder
         * 
         */
        public Builder assessmentPolicyId(@Nullable Output assessmentPolicyId) {
            $.assessmentPolicyId = assessmentPolicyId;
            return this;
        }

        /**
         * @param assessmentPolicyId The ID of the security Assessment policy to apply to this resource. Changing this forces a new security Assessment to be created.
         * 
         * @return builder
         * 
         */
        public Builder assessmentPolicyId(String assessmentPolicyId) {
            return assessmentPolicyId(Output.of(assessmentPolicyId));
        }

        /**
         * @param status A `status` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status A `status` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder status(AssessmentStatusArgs status) {
            return status(Output.of(status));
        }

        /**
         * @param targetResourceId The ID of the target resource. Changing this forces a new security Assessment to be created.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceId(@Nullable Output targetResourceId) {
            $.targetResourceId = targetResourceId;
            return this;
        }

        /**
         * @param targetResourceId The ID of the target resource. Changing this forces a new security Assessment to be created.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceId(String targetResourceId) {
            return targetResourceId(Output.of(targetResourceId));
        }

        public AssessmentState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy