Record Class DnsPreparation
java.lang.Object
java.lang.Record
com.digicert.validation.methods.dns.prepare.DnsPreparation
- Record Components:
domain
- the domain to be validateddnsType
- the type of DNS recordchallengeType
- the type of challenge used for validation
public record DnsPreparation(String domain, DnsType dnsType, ChallengeType challengeType)
extends Record
Represents the preparation details required for DNS validation.
This class is a record that holds the domain, DNS type, and challenge type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChallengeType
The field for thechallengeType
record component.private final DnsType
The field for thednsType
record component.private final String
The field for thedomain
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDnsPreparation
(String domain, DnsType dnsType, ChallengeType challengeType) Creates an instance of aDnsPreparation
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechallengeType
record component.dnsType()
Returns the value of thednsType
record component.domain()
Returns the value of thedomain
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
domain
The field for thedomain
record component. -
dnsType
The field for thednsType
record component. -
challengeType
The field for thechallengeType
record component.
-
-
Constructor Details
-
DnsPreparation
Creates an instance of aDnsPreparation
record class.- Parameters:
domain
- the value for thedomain
record componentdnsType
- the value for thednsType
record componentchallengeType
- the value for thechallengeType
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
dnsType
Returns the value of thednsType
record component.- Returns:
- the value of the
dnsType
record component
-
challengeType
Returns the value of thechallengeType
record component.- Returns:
- the value of the
challengeType
record component
-