ComplianceEvaluationResponse Class

Represents the compliance evaluation response from a control evaluation. It’s the output of the ComplianceEvaluation interface’s evaluate method and includes two properties—evaluationResult and complianceControlLog.

Namespace 

ComplianceMgmt

Example 

1@VisibleApiVersion(minApiVersion='256')
2global class ComplianceEvaluationResponse {
3   EvaluationResult evaluationResult; // The compliance evaluation result.
4   ComplianceControlLog complianceControlLog; // The business context and evidence attributes that need to be logged for compliance check.
5
6   global ComplianceEvaluationResponse(EvaluationResult evaluationResult, ComplianceControlLog complianceControlLog) {
7       this.evaluationResult = evaluationResult;
8       this.complianceControlLog = complianceControlLog;
9   }
10
11   global EvaluationResult getEvaluationResult() {
12       return this.evaluationResult;
13   }
14
15   global ComplianceControlLog getComplianceControlLog() {
16       return this.complianceControlLog;
17   }
18}

ComplianceEvaluationResponse Constructors 

Learn more about the constructors available with the ComplianceEvaluationResponse class.

The ComplianceEvaluationResponse class includes this constructor.

ComplianceEvaluationResponse(evaluationResult, complianceControlLog) 

Creates ComplianceEvaluationResponse object.

Signature 

public ComplianceEvaluationResponse(ComplianceMgmt.EvaluationResult evaluationResult, ComplianceMgmt.ComplianceControlLog complianceControlLog)

Parameters 

evaluationResult

Type: ComplianceMgmt.EvaluationResult

The object that represents the compliance evaluation result from the control.

complianceControlLog

Type: ComplianceMgmt.ComplianceControlLog

The object that contains the key-value pair to specify the controls to be included in logs.

ComplianceEvaluationResponse Methods 

Learn more about the methods available with the ComplianceEvaluationResponse class.

The ComplianceEvaluationResponse class includes these methods.

  • getComplianceControlLog()

    Gets the ComplianceControlLog object that contains the details of the compliance control logs.

  • getEvaluationResult()

    Gets the EvaluationResult object that contains the details of the compliance evaluation result.

getComplianceControlLog() 

Gets the ComplianceControlLog object that contains the details of the compliance control logs.

Signature 

public ComplianceMgmt.ComplianceControlLog getComplianceControlLog()

Return Value 

Type: ComplianceMgmt.ComplianceControlLog

getEvaluationResult() 

Gets the EvaluationResult object that contains the details of the compliance evaluation result.

Signature 

public ComplianceMgmt.EvaluationResult getEvaluationResult()

Return Value 

Type: ComplianceMgmt.EvaluationResult