ControlInput Class

Represents a control input that’s used in the evaluation of compliance. It includes two main properties: parameterName and parameterType.

Namespace 

ComplianceMgmt

Example 

1@VisibleApiVersion(minApiVersion='256')
2 global class ControlInput {
3    String parameterName; // Name of the parameter
4    ControlInputType parameterType; // Type of the parameter
5
6    global ControlInput(String parameterName, ControlInputType parameterType) {
7        this.parameterName = parameterName;
8        this.parameterType = parameterType;
9    }
10
11    public Boolean equals(Object obj) {
12        if (obj instanceof ControlInput) {
13            ControlInput p = (ControlInput)obj;
14            return ((parameterName==p.parameterName) && (parameterType==p.parameterType));
15        }
16        return false;
17    }
18
19    public Integer hashCode() {
20        return (31 * parameterName.hashCode()) ^ parameterType.hashCode();
21    }
22 }

ControlInput Constructors 

Learn more about the constructors available with the ControlInput class.

The ControlInput class includes this constructor.

ControlInput(parameterName, parameterType) 

Initializes the ControlInput object.

Signature 

public ControlInput(String parameterName, ComplianceMgmt.ControlInputType parameterType)

Parameters 

parameterName

Type: String

Name of the business context parameter that’s used to evaluate compliance.

parameterType

Type: ComplianceMgmt.ControlInputType

The type of the business context parameter. Only RecordId is supported.