Record Class PrimaryFileResponse
java.lang.Object
java.lang.Record
com.digicert.validation.mpic.api.file.PrimaryFileResponse
public record PrimaryFileResponse(String agentId, int statusCode, AgentStatus agentStatus, String fileUrl, String actualFileUrl, String fileContents)
extends Record
Represents the response from a primary file validation request.
Contains details about the agent, status, file URL, and file contents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theactualFileUrlrecord component.private final StringThe field for theagentIdrecord component.private final AgentStatusThe field for theagentStatusrecord component.private final StringThe field for thefileContentsrecord component.private final StringThe field for thefileUrlrecord component.private final intThe field for thestatusCoderecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPrimaryFileResponse(String agentId, int statusCode, AgentStatus agentStatus, String fileUrl, String actualFileUrl, String fileContents) Creates an instance of aPrimaryFileResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualFileUrlrecord component.agentId()Returns the value of theagentIdrecord component.Returns the value of theagentStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileContentsrecord component.fileUrl()Returns the value of thefileUrlrecord component.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. -
fileUrl
The field for thefileUrlrecord component. -
actualFileUrl
The field for theactualFileUrlrecord component. -
fileContents
The field for thefileContentsrecord component.
-
-
Constructor Details
-
PrimaryFileResponse
public PrimaryFileResponse(String agentId, int statusCode, AgentStatus agentStatus, String fileUrl, String actualFileUrl, String fileContents) Creates an instance of aPrimaryFileResponserecord class.- Parameters:
agentId- the value for theagentIdrecord componentstatusCode- the value for thestatusCoderecord componentagentStatus- the value for theagentStatusrecord componentfileUrl- the value for thefileUrlrecord componentactualFileUrl- the value for theactualFileUrlrecord componentfileContents- the value for thefileContentsrecord 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
-
fileUrl
Returns the value of thefileUrlrecord component.- Returns:
- the value of the
fileUrlrecord component
-
actualFileUrl
Returns the value of theactualFileUrlrecord component.- Returns:
- the value of the
actualFileUrlrecord component
-
fileContents
Returns the value of thefileContentsrecord component.- Returns:
- the value of the
fileContentsrecord component
-