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