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

com.pulumi.azurenative.policyinsights.outputs.GetAttestationAtResourceGroupResult 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.policyinsights.outputs;

import com.pulumi.azurenative.policyinsights.outputs.AttestationEvidenceResponse;
import com.pulumi.azurenative.policyinsights.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAttestationAtResourceGroupResult {
    /**
     * @return The time the evidence was assessed
     * 
     */
    private @Nullable String assessmentDate;
    /**
     * @return Comments describing why this attestation was created.
     * 
     */
    private @Nullable String comments;
    /**
     * @return The compliance state that should be set on the resource.
     * 
     */
    private @Nullable String complianceState;
    /**
     * @return The evidence supporting the compliance state set in this attestation.
     * 
     */
    private @Nullable List evidence;
    /**
     * @return The time the compliance state should expire.
     * 
     */
    private @Nullable String expiresOn;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The time the compliance state was last changed in this attestation.
     * 
     */
    private String lastComplianceStateChangeAt;
    /**
     * @return Additional metadata for this attestation
     * 
     */
    private @Nullable Object metadata;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
     * 
     */
    private @Nullable String owner;
    /**
     * @return The resource ID of the policy assignment that the attestation is setting the state for.
     * 
     */
    private String policyAssignmentId;
    /**
     * @return The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.
     * 
     */
    private @Nullable String policyDefinitionReferenceId;
    /**
     * @return The status of the attestation.
     * 
     */
    private String provisioningState;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetAttestationAtResourceGroupResult() {}
    /**
     * @return The time the evidence was assessed
     * 
     */
    public Optional assessmentDate() {
        return Optional.ofNullable(this.assessmentDate);
    }
    /**
     * @return Comments describing why this attestation was created.
     * 
     */
    public Optional comments() {
        return Optional.ofNullable(this.comments);
    }
    /**
     * @return The compliance state that should be set on the resource.
     * 
     */
    public Optional complianceState() {
        return Optional.ofNullable(this.complianceState);
    }
    /**
     * @return The evidence supporting the compliance state set in this attestation.
     * 
     */
    public List evidence() {
        return this.evidence == null ? List.of() : this.evidence;
    }
    /**
     * @return The time the compliance state should expire.
     * 
     */
    public Optional expiresOn() {
        return Optional.ofNullable(this.expiresOn);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The time the compliance state was last changed in this attestation.
     * 
     */
    public String lastComplianceStateChangeAt() {
        return this.lastComplianceStateChangeAt;
    }
    /**
     * @return Additional metadata for this attestation
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.
     * 
     */
    public Optional owner() {
        return Optional.ofNullable(this.owner);
    }
    /**
     * @return The resource ID of the policy assignment that the attestation is setting the state for.
     * 
     */
    public String policyAssignmentId() {
        return this.policyAssignmentId;
    }
    /**
     * @return The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition.
     * 
     */
    public Optional policyDefinitionReferenceId() {
        return Optional.ofNullable(this.policyDefinitionReferenceId);
    }
    /**
     * @return The status of the attestation.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetAttestationAtResourceGroupResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String assessmentDate;
        private @Nullable String comments;
        private @Nullable String complianceState;
        private @Nullable List evidence;
        private @Nullable String expiresOn;
        private String id;
        private String lastComplianceStateChangeAt;
        private @Nullable Object metadata;
        private String name;
        private @Nullable String owner;
        private String policyAssignmentId;
        private @Nullable String policyDefinitionReferenceId;
        private String provisioningState;
        private SystemDataResponse systemData;
        private String type;
        public Builder() {}
        public Builder(GetAttestationAtResourceGroupResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.assessmentDate = defaults.assessmentDate;
    	      this.comments = defaults.comments;
    	      this.complianceState = defaults.complianceState;
    	      this.evidence = defaults.evidence;
    	      this.expiresOn = defaults.expiresOn;
    	      this.id = defaults.id;
    	      this.lastComplianceStateChangeAt = defaults.lastComplianceStateChangeAt;
    	      this.metadata = defaults.metadata;
    	      this.name = defaults.name;
    	      this.owner = defaults.owner;
    	      this.policyAssignmentId = defaults.policyAssignmentId;
    	      this.policyDefinitionReferenceId = defaults.policyDefinitionReferenceId;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder assessmentDate(@Nullable String assessmentDate) {

            this.assessmentDate = assessmentDate;
            return this;
        }
        @CustomType.Setter
        public Builder comments(@Nullable String comments) {

            this.comments = comments;
            return this;
        }
        @CustomType.Setter
        public Builder complianceState(@Nullable String complianceState) {

            this.complianceState = complianceState;
            return this;
        }
        @CustomType.Setter
        public Builder evidence(@Nullable List evidence) {

            this.evidence = evidence;
            return this;
        }
        public Builder evidence(AttestationEvidenceResponse... evidence) {
            return evidence(List.of(evidence));
        }
        @CustomType.Setter
        public Builder expiresOn(@Nullable String expiresOn) {

            this.expiresOn = expiresOn;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAttestationAtResourceGroupResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder lastComplianceStateChangeAt(String lastComplianceStateChangeAt) {
            if (lastComplianceStateChangeAt == null) {
              throw new MissingRequiredPropertyException("GetAttestationAtResourceGroupResult", "lastComplianceStateChangeAt");
            }
            this.lastComplianceStateChangeAt = lastComplianceStateChangeAt;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(@Nullable Object metadata) {

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

            this.owner = owner;
            return this;
        }
        @CustomType.Setter
        public Builder policyAssignmentId(String policyAssignmentId) {
            if (policyAssignmentId == null) {
              throw new MissingRequiredPropertyException("GetAttestationAtResourceGroupResult", "policyAssignmentId");
            }
            this.policyAssignmentId = policyAssignmentId;
            return this;
        }
        @CustomType.Setter
        public Builder policyDefinitionReferenceId(@Nullable String policyDefinitionReferenceId) {

            this.policyDefinitionReferenceId = policyDefinitionReferenceId;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetAttestationAtResourceGroupResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetAttestationAtResourceGroupResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetAttestationAtResourceGroupResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetAttestationAtResourceGroupResult build() {
            final var _resultValue = new GetAttestationAtResourceGroupResult();
            _resultValue.assessmentDate = assessmentDate;
            _resultValue.comments = comments;
            _resultValue.complianceState = complianceState;
            _resultValue.evidence = evidence;
            _resultValue.expiresOn = expiresOn;
            _resultValue.id = id;
            _resultValue.lastComplianceStateChangeAt = lastComplianceStateChangeAt;
            _resultValue.metadata = metadata;
            _resultValue.name = name;
            _resultValue.owner = owner;
            _resultValue.policyAssignmentId = policyAssignmentId;
            _resultValue.policyDefinitionReferenceId = policyDefinitionReferenceId;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}