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

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

There is a newer version: 2.72.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.inputs.AssessmentStatusArgs;
import com.pulumi.azurenative.security.inputs.AzureResourceDetailsArgs;
import com.pulumi.azurenative.security.inputs.OnPremiseResourceDetailsArgs;
import com.pulumi.azurenative.security.inputs.OnPremiseSqlResourceDetailsArgs;
import com.pulumi.azurenative.security.inputs.SecurityAssessmentMetadataPropertiesArgs;
import com.pulumi.azurenative.security.inputs.SecurityAssessmentPartnerDataArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AssessmentArgs Empty = new AssessmentArgs();

    /**
     * Additional data regarding the assessment
     * 
     */
    @Import(name="additionalData")
    private @Nullable Output> additionalData;

    /**
     * @return Additional data regarding the assessment
     * 
     */
    public Optional>> additionalData() {
        return Optional.ofNullable(this.additionalData);
    }

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

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

    /**
     * Describes properties of an assessment metadata.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

    /**
     * @return Describes properties of an assessment metadata.
     * 
     */
    public Optional> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * Data regarding 3rd party partner integration
     * 
     */
    @Import(name="partnersData")
    private @Nullable Output partnersData;

    /**
     * @return Data regarding 3rd party partner integration
     * 
     */
    public Optional> partnersData() {
        return Optional.ofNullable(this.partnersData);
    }

    /**
     * Details of the resource that was assessed
     * 
     */
    @Import(name="resourceDetails", required=true)
    private Output resourceDetails;

    /**
     * @return Details of the resource that was assessed
     * 
     */
    public Output resourceDetails() {
        return this.resourceDetails;
    }

    /**
     * The identifier of the resource.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output resourceId;

    /**
     * @return The identifier of the resource.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    /**
     * The result of the assessment
     * 
     */
    @Import(name="status", required=true)
    private Output status;

    /**
     * @return The result of the assessment
     * 
     */
    public Output status() {
        return this.status;
    }

    private AssessmentArgs() {}

    private AssessmentArgs(AssessmentArgs $) {
        this.additionalData = $.additionalData;
        this.assessmentName = $.assessmentName;
        this.metadata = $.metadata;
        this.partnersData = $.partnersData;
        this.resourceDetails = $.resourceDetails;
        this.resourceId = $.resourceId;
        this.status = $.status;
    }

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

    public static final class Builder {
        private AssessmentArgs $;

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

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

        /**
         * @param additionalData Additional data regarding the assessment
         * 
         * @return builder
         * 
         */
        public Builder additionalData(@Nullable Output> additionalData) {
            $.additionalData = additionalData;
            return this;
        }

        /**
         * @param additionalData Additional data regarding the assessment
         * 
         * @return builder
         * 
         */
        public Builder additionalData(Map additionalData) {
            return additionalData(Output.of(additionalData));
        }

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

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

        /**
         * @param metadata Describes properties of an assessment metadata.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Describes properties of an assessment metadata.
         * 
         * @return builder
         * 
         */
        public Builder metadata(SecurityAssessmentMetadataPropertiesArgs metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param partnersData Data regarding 3rd party partner integration
         * 
         * @return builder
         * 
         */
        public Builder partnersData(@Nullable Output partnersData) {
            $.partnersData = partnersData;
            return this;
        }

        /**
         * @param partnersData Data regarding 3rd party partner integration
         * 
         * @return builder
         * 
         */
        public Builder partnersData(SecurityAssessmentPartnerDataArgs partnersData) {
            return partnersData(Output.of(partnersData));
        }

        /**
         * @param resourceDetails Details of the resource that was assessed
         * 
         * @return builder
         * 
         */
        public Builder resourceDetails(Output resourceDetails) {
            $.resourceDetails = resourceDetails;
            return this;
        }

        /**
         * @param resourceDetails Details of the resource that was assessed
         * 
         * @return builder
         * 
         */
        public Builder resourceDetails(Object resourceDetails) {
            return resourceDetails(Output.of(resourceDetails));
        }

        /**
         * @param resourceId The identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

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

        /**
         * @param status The result of the assessment
         * 
         * @return builder
         * 
         */
        public Builder status(AssessmentStatusArgs status) {
            return status(Output.of(status));
        }

        public AssessmentArgs build() {
            if ($.resourceDetails == null) {
                throw new MissingRequiredPropertyException("AssessmentArgs", "resourceDetails");
            }
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("AssessmentArgs", "resourceId");
            }
            if ($.status == null) {
                throw new MissingRequiredPropertyException("AssessmentArgs", "status");
            }
            return $;
        }
    }

}