
com.pulumi.azurenative.security.outputs.GetAssessmentsMetadataSubscriptionResult 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.azurenative.security.outputs;
import com.pulumi.core.annotations.CustomType;
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;
@CustomType
public final class GetAssessmentsMetadataSubscriptionResult {
/**
* @return BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
*
*/
private String assessmentType;
private @Nullable List categories;
/**
* @return Human readable description of the assessment
*
*/
private @Nullable String description;
/**
* @return User friendly display name of the assessment
*
*/
private String displayName;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return The implementation effort required to remediate this assessment
*
*/
private @Nullable String implementationEffort;
/**
* @return Resource name
*
*/
private String name;
/**
* @return Azure resource ID of the policy definition that turns this assessment calculation on
*
*/
private String policyDefinitionId;
/**
* @return True if this assessment is in preview release status
*
*/
private @Nullable Boolean preview;
/**
* @return Human readable description of what you should do to mitigate this security issue
*
*/
private @Nullable String remediationDescription;
/**
* @return The severity level of the assessment
*
*/
private String severity;
private @Nullable List threats;
/**
* @return Resource type
*
*/
private String type;
/**
* @return The user impact of the assessment
*
*/
private @Nullable String userImpact;
private GetAssessmentsMetadataSubscriptionResult() {}
/**
* @return BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition
*
*/
public String assessmentType() {
return this.assessmentType;
}
public List categories() {
return this.categories == null ? List.of() : this.categories;
}
/**
* @return Human readable description of the assessment
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return User friendly display name of the assessment
*
*/
public String displayName() {
return this.displayName;
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return The implementation effort required to remediate this assessment
*
*/
public Optional implementationEffort() {
return Optional.ofNullable(this.implementationEffort);
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Azure resource ID of the policy definition that turns this assessment calculation on
*
*/
public String policyDefinitionId() {
return this.policyDefinitionId;
}
/**
* @return True if this assessment is in preview release status
*
*/
public Optional preview() {
return Optional.ofNullable(this.preview);
}
/**
* @return Human readable description of what you should do to mitigate this security issue
*
*/
public Optional remediationDescription() {
return Optional.ofNullable(this.remediationDescription);
}
/**
* @return The severity level of the assessment
*
*/
public String severity() {
return this.severity;
}
public List threats() {
return this.threats == null ? List.of() : this.threats;
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
/**
* @return The user impact of the assessment
*
*/
public Optional userImpact() {
return Optional.ofNullable(this.userImpact);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAssessmentsMetadataSubscriptionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String assessmentType;
private @Nullable List categories;
private @Nullable String description;
private String displayName;
private String id;
private @Nullable String implementationEffort;
private String name;
private String policyDefinitionId;
private @Nullable Boolean preview;
private @Nullable String remediationDescription;
private String severity;
private @Nullable List threats;
private String type;
private @Nullable String userImpact;
public Builder() {}
public Builder(GetAssessmentsMetadataSubscriptionResult defaults) {
Objects.requireNonNull(defaults);
this.assessmentType = defaults.assessmentType;
this.categories = defaults.categories;
this.description = defaults.description;
this.displayName = defaults.displayName;
this.id = defaults.id;
this.implementationEffort = defaults.implementationEffort;
this.name = defaults.name;
this.policyDefinitionId = defaults.policyDefinitionId;
this.preview = defaults.preview;
this.remediationDescription = defaults.remediationDescription;
this.severity = defaults.severity;
this.threats = defaults.threats;
this.type = defaults.type;
this.userImpact = defaults.userImpact;
}
@CustomType.Setter
public Builder assessmentType(String assessmentType) {
if (assessmentType == null) {
throw new MissingRequiredPropertyException("GetAssessmentsMetadataSubscriptionResult", "assessmentType");
}
this.assessmentType = assessmentType;
return this;
}
@CustomType.Setter
public Builder categories(@Nullable List categories) {
this.categories = categories;
return this;
}
public Builder categories(String... categories) {
return categories(List.of(categories));
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder displayName(String displayName) {
if (displayName == null) {
throw new MissingRequiredPropertyException("GetAssessmentsMetadataSubscriptionResult", "displayName");
}
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAssessmentsMetadataSubscriptionResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder implementationEffort(@Nullable String implementationEffort) {
this.implementationEffort = implementationEffort;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAssessmentsMetadataSubscriptionResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder policyDefinitionId(String policyDefinitionId) {
if (policyDefinitionId == null) {
throw new MissingRequiredPropertyException("GetAssessmentsMetadataSubscriptionResult", "policyDefinitionId");
}
this.policyDefinitionId = policyDefinitionId;
return this;
}
@CustomType.Setter
public Builder preview(@Nullable Boolean preview) {
this.preview = preview;
return this;
}
@CustomType.Setter
public Builder remediationDescription(@Nullable String remediationDescription) {
this.remediationDescription = remediationDescription;
return this;
}
@CustomType.Setter
public Builder severity(String severity) {
if (severity == null) {
throw new MissingRequiredPropertyException("GetAssessmentsMetadataSubscriptionResult", "severity");
}
this.severity = severity;
return this;
}
@CustomType.Setter
public Builder threats(@Nullable List threats) {
this.threats = threats;
return this;
}
public Builder threats(String... threats) {
return threats(List.of(threats));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAssessmentsMetadataSubscriptionResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder userImpact(@Nullable String userImpact) {
this.userImpact = userImpact;
return this;
}
public GetAssessmentsMetadataSubscriptionResult build() {
final var _resultValue = new GetAssessmentsMetadataSubscriptionResult();
_resultValue.assessmentType = assessmentType;
_resultValue.categories = categories;
_resultValue.description = description;
_resultValue.displayName = displayName;
_resultValue.id = id;
_resultValue.implementationEffort = implementationEffort;
_resultValue.name = name;
_resultValue.policyDefinitionId = policyDefinitionId;
_resultValue.preview = preview;
_resultValue.remediationDescription = remediationDescription;
_resultValue.severity = severity;
_resultValue.threats = threats;
_resultValue.type = type;
_resultValue.userImpact = userImpact;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy