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

com.pulumi.azurenative.security.outputs.GetAssessmentResult 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.outputs;

import com.pulumi.azurenative.security.outputs.AssessmentLinksResponse;
import com.pulumi.azurenative.security.outputs.AssessmentStatusResponseResponse;
import com.pulumi.azurenative.security.outputs.AzureResourceDetailsResponse;
import com.pulumi.azurenative.security.outputs.OnPremiseResourceDetailsResponse;
import com.pulumi.azurenative.security.outputs.OnPremiseSqlResourceDetailsResponse;
import com.pulumi.azurenative.security.outputs.SecurityAssessmentMetadataPropertiesResponse;
import com.pulumi.azurenative.security.outputs.SecurityAssessmentPartnerDataResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetAssessmentResult {
    /**
     * @return Additional data regarding the assessment
     * 
     */
    private @Nullable Map additionalData;
    /**
     * @return User friendly display name of the assessment
     * 
     */
    private String displayName;
    /**
     * @return Resource Id
     * 
     */
    private String id;
    /**
     * @return Links relevant to the assessment
     * 
     */
    private AssessmentLinksResponse links;
    /**
     * @return Describes properties of an assessment metadata.
     * 
     */
    private @Nullable SecurityAssessmentMetadataPropertiesResponse metadata;
    /**
     * @return Resource name
     * 
     */
    private String name;
    /**
     * @return Data regarding 3rd party partner integration
     * 
     */
    private @Nullable SecurityAssessmentPartnerDataResponse partnersData;
    /**
     * @return Details of the resource that was assessed
     * 
     */
    private Object resourceDetails;
    /**
     * @return The result of the assessment
     * 
     */
    private AssessmentStatusResponseResponse status;
    /**
     * @return Resource type
     * 
     */
    private String type;

    private GetAssessmentResult() {}
    /**
     * @return Additional data regarding the assessment
     * 
     */
    public Map additionalData() {
        return this.additionalData == null ? Map.of() : this.additionalData;
    }
    /**
     * @return User friendly display name of the assessment
     * 
     */
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return Resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Links relevant to the assessment
     * 
     */
    public AssessmentLinksResponse links() {
        return this.links;
    }
    /**
     * @return Describes properties of an assessment metadata.
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return Resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Data regarding 3rd party partner integration
     * 
     */
    public Optional partnersData() {
        return Optional.ofNullable(this.partnersData);
    }
    /**
     * @return Details of the resource that was assessed
     * 
     */
    public Object resourceDetails() {
        return this.resourceDetails;
    }
    /**
     * @return The result of the assessment
     * 
     */
    public AssessmentStatusResponseResponse status() {
        return this.status;
    }
    /**
     * @return Resource type
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetAssessmentResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map additionalData;
        private String displayName;
        private String id;
        private AssessmentLinksResponse links;
        private @Nullable SecurityAssessmentMetadataPropertiesResponse metadata;
        private String name;
        private @Nullable SecurityAssessmentPartnerDataResponse partnersData;
        private Object resourceDetails;
        private AssessmentStatusResponseResponse status;
        private String type;
        public Builder() {}
        public Builder(GetAssessmentResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalData = defaults.additionalData;
    	      this.displayName = defaults.displayName;
    	      this.id = defaults.id;
    	      this.links = defaults.links;
    	      this.metadata = defaults.metadata;
    	      this.name = defaults.name;
    	      this.partnersData = defaults.partnersData;
    	      this.resourceDetails = defaults.resourceDetails;
    	      this.status = defaults.status;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder additionalData(@Nullable Map additionalData) {

            this.additionalData = additionalData;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            if (displayName == null) {
              throw new MissingRequiredPropertyException("GetAssessmentResult", "displayName");
            }
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAssessmentResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder links(AssessmentLinksResponse links) {
            if (links == null) {
              throw new MissingRequiredPropertyException("GetAssessmentResult", "links");
            }
            this.links = links;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(@Nullable SecurityAssessmentMetadataPropertiesResponse metadata) {

            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetAssessmentResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder partnersData(@Nullable SecurityAssessmentPartnerDataResponse partnersData) {

            this.partnersData = partnersData;
            return this;
        }
        @CustomType.Setter
        public Builder resourceDetails(Object resourceDetails) {
            if (resourceDetails == null) {
              throw new MissingRequiredPropertyException("GetAssessmentResult", "resourceDetails");
            }
            this.resourceDetails = resourceDetails;
            return this;
        }
        @CustomType.Setter
        public Builder status(AssessmentStatusResponseResponse status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetAssessmentResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetAssessmentResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetAssessmentResult build() {
            final var _resultValue = new GetAssessmentResult();
            _resultValue.additionalData = additionalData;
            _resultValue.displayName = displayName;
            _resultValue.id = id;
            _resultValue.links = links;
            _resultValue.metadata = metadata;
            _resultValue.name = name;
            _resultValue.partnersData = partnersData;
            _resultValue.resourceDetails = resourceDetails;
            _resultValue.status = status;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy