Class AttestationProperties
java.lang.Object
com.azure.resourcemanager.policyinsights.fluent.models.AttestationProperties
The properties of an attestation resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the assessmentDate property: The time the evidence was assessed.comments()
Get the comments property: Comments describing why this attestation was created.Get the complianceState property: The compliance state that should be set on the resource.evidence()
Get the evidence property: The evidence supporting the compliance state set in this attestation.Get the expiresOn property: The time the compliance state should expire.Get the lastComplianceStateChangeAt property: The time the compliance state was last changed in this attestation.metadata()
Get the metadata property: Additional metadata for this attestation.owner()
Get the owner property: The person responsible for setting the state of the resource.Get the policyAssignmentId property: The resource ID of the policy assignment that the attestation is setting the state for.Get the policyDefinitionReferenceId property: The policy definition reference ID from a policy set definition that the attestation is setting the state for.Get the provisioningState property: The status of the attestation.void
validate()
Validates the instance.withAssessmentDate
(OffsetDateTime assessmentDate) Set the assessmentDate property: The time the evidence was assessed.withComments
(String comments) Set the comments property: Comments describing why this attestation was created.withComplianceState
(ComplianceState complianceState) Set the complianceState property: The compliance state that should be set on the resource.withEvidence
(List<AttestationEvidence> evidence) Set the evidence property: The evidence supporting the compliance state set in this attestation.withExpiresOn
(OffsetDateTime expiresOn) Set the expiresOn property: The time the compliance state should expire.withMetadata
(Object metadata) Set the metadata property: Additional metadata for this attestation.Set the owner property: The person responsible for setting the state of the resource.withPolicyAssignmentId
(String policyAssignmentId) Set the policyAssignmentId property: The resource ID of the policy assignment that the attestation is setting the state for.withPolicyDefinitionReferenceId
(String policyDefinitionReferenceId) Set the policyDefinitionReferenceId property: The policy definition reference ID from a policy set definition that the attestation is setting the state for.
-
Constructor Details
-
AttestationProperties
public AttestationProperties()Creates an instance of AttestationProperties class.
-
-
Method Details
-
policyAssignmentId
Get the policyAssignmentId property: The resource ID of the policy assignment that the attestation is setting the state for.- Returns:
- the policyAssignmentId value.
-
withPolicyAssignmentId
Set the policyAssignmentId property: The resource ID of the policy assignment that the attestation is setting the state for.- Parameters:
policyAssignmentId
- the policyAssignmentId value to set.- Returns:
- the AttestationProperties object itself.
-
policyDefinitionReferenceId
Get the policyDefinitionReferenceId property: 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.- Returns:
- the policyDefinitionReferenceId value.
-
withPolicyDefinitionReferenceId
Set the policyDefinitionReferenceId property: 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.- Parameters:
policyDefinitionReferenceId
- the policyDefinitionReferenceId value to set.- Returns:
- the AttestationProperties object itself.
-
complianceState
Get the complianceState property: The compliance state that should be set on the resource.- Returns:
- the complianceState value.
-
withComplianceState
Set the complianceState property: The compliance state that should be set on the resource.- Parameters:
complianceState
- the complianceState value to set.- Returns:
- the AttestationProperties object itself.
-
expiresOn
Get the expiresOn property: The time the compliance state should expire.- Returns:
- the expiresOn value.
-
withExpiresOn
Set the expiresOn property: The time the compliance state should expire.- Parameters:
expiresOn
- the expiresOn value to set.- Returns:
- the AttestationProperties object itself.
-
owner
Get the owner property: The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.- Returns:
- the owner value.
-
withOwner
Set the owner property: The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID.- Parameters:
owner
- the owner value to set.- Returns:
- the AttestationProperties object itself.
-
comments
Get the comments property: Comments describing why this attestation was created.- Returns:
- the comments value.
-
withComments
Set the comments property: Comments describing why this attestation was created.- Parameters:
comments
- the comments value to set.- Returns:
- the AttestationProperties object itself.
-
evidence
Get the evidence property: The evidence supporting the compliance state set in this attestation.- Returns:
- the evidence value.
-
withEvidence
Set the evidence property: The evidence supporting the compliance state set in this attestation.- Parameters:
evidence
- the evidence value to set.- Returns:
- the AttestationProperties object itself.
-
provisioningState
Get the provisioningState property: The status of the attestation.- Returns:
- the provisioningState value.
-
lastComplianceStateChangeAt
Get the lastComplianceStateChangeAt property: The time the compliance state was last changed in this attestation.- Returns:
- the lastComplianceStateChangeAt value.
-
assessmentDate
Get the assessmentDate property: The time the evidence was assessed.- Returns:
- the assessmentDate value.
-
withAssessmentDate
Set the assessmentDate property: The time the evidence was assessed.- Parameters:
assessmentDate
- the assessmentDate value to set.- Returns:
- the AttestationProperties object itself.
-
metadata
Get the metadata property: Additional metadata for this attestation.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Additional metadata for this attestation.- Parameters:
metadata
- the metadata value to set.- Returns:
- the AttestationProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-