Package google.registry.flows.custom
Record Class DomainPricingCustomLogic.RestorePriceParameters
java.lang.Object
java.lang.Record
google.registry.flows.custom.DomainPricingCustomLogic.RestorePriceParameters
- Enclosing class:
DomainPricingCustomLogic
public static record DomainPricingCustomLogic.RestorePriceParameters(FeesAndCredits feesAndCredits, Tld tld, com.google.common.net.InternetDomainName domainName, org.joda.time.DateTime asOfDate)
extends Record
A record to encapsulate parameters for a call to
DomainPricingCustomLogic.customizeRestorePrice(google.registry.flows.custom.DomainPricingCustomLogic.RestorePriceParameters)
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Builder forDomainPricingCustomLogic.RestorePriceParameters
. -
Constructor Summary
ConstructorDescriptionRestorePriceParameters
(FeesAndCredits feesAndCredits, Tld tld, com.google.common.net.InternetDomainName domainName, org.joda.time.DateTime asOfDate) Creates an instance of aRestorePriceParameters
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTime
asOfDate()
Returns the value of theasOfDate
record component.com.google.common.net.InternetDomainName
Returns the value of thedomainName
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefeesAndCredits
record component.final int
hashCode()
Returns a hash code value for this object.tld()
Returns the value of thetld
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RestorePriceParameters
public RestorePriceParameters(FeesAndCredits feesAndCredits, Tld tld, com.google.common.net.InternetDomainName domainName, org.joda.time.DateTime asOfDate) Creates an instance of aRestorePriceParameters
record class.- Parameters:
feesAndCredits
- the value for thefeesAndCredits
record componenttld
- the value for thetld
record componentdomainName
- the value for thedomainName
record componentasOfDate
- the value for theasOfDate
record component
-
-
Method Details
-
newBuilder
-
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)
. -
feesAndCredits
Returns the value of thefeesAndCredits
record component.- Returns:
- the value of the
feesAndCredits
record component
-
tld
Returns the value of thetld
record component.- Returns:
- the value of the
tld
record component
-
domainName
public com.google.common.net.InternetDomainName domainName()Returns the value of thedomainName
record component.- Returns:
- the value of the
domainName
record component
-
asOfDate
public org.joda.time.DateTime asOfDate()Returns the value of theasOfDate
record component.- Returns:
- the value of the
asOfDate
record component
-