Record Class SecondaryFileResponse
java.lang.Object
java.lang.Record
com.digicert.validation.mpic.api.file.SecondaryFileResponse
public record SecondaryFileResponse(String agentId, int statusCode, AgentStatus agentStatus, boolean corroborates)
extends Record
Represents the response from a secondary file validation request.
Contains details about the agent, status, and whether it corroborates with the primary response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theagentIdrecord component.private final AgentStatusThe field for theagentStatusrecord component.private final booleanThe field for thecorroboratesrecord component.private final intThe field for thestatusCoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSecondaryFileResponse(String agentId, int statusCode, AgentStatus agentStatus, boolean corroborates) Creates an instance of aSecondaryFileResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.Returns the value of theagentStatusrecord component.booleanReturns the value of thecorroboratesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
agentId
The field for theagentIdrecord component. -
statusCode
private final int statusCodeThe field for thestatusCoderecord component. -
agentStatus
The field for theagentStatusrecord component. -
corroborates
private final boolean corroboratesThe field for thecorroboratesrecord component.
-
-
Constructor Details
-
SecondaryFileResponse
public SecondaryFileResponse(String agentId, int statusCode, AgentStatus agentStatus, boolean corroborates) Creates an instance of aSecondaryFileResponserecord class.- Parameters:
agentId- the value for theagentIdrecord componentstatusCode- the value for thestatusCoderecord componentagentStatus- the value for theagentStatusrecord componentcorroborates- the value for thecorroboratesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
agentStatus
Returns the value of theagentStatusrecord component.- Returns:
- the value of the
agentStatusrecord component
-
corroborates
public boolean corroborates()Returns the value of thecorroboratesrecord component.- Returns:
- the value of the
corroboratesrecord component
-