Package google.registry.flows.custom
Record Class DomainPricingCustomLogic.RenewPriceParameters
java.lang.Object
java.lang.Record
google.registry.flows.custom.DomainPricingCustomLogic.RenewPriceParameters
- Enclosing class:
DomainPricingCustomLogic
public static record DomainPricingCustomLogic.RenewPriceParameters(FeesAndCredits feesAndCredits, Tld tld, com.google.common.net.InternetDomainName domainName, org.joda.time.DateTime asOfDate, int years)
extends Record
A record to encapsulate parameters for a call to
DomainPricingCustomLogic.customizeRenewPrice(google.registry.flows.custom.DomainPricingCustomLogic.RenewPriceParameters)
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Builder forDomainPricingCustomLogic.RenewPriceParameters
. -
Constructor Summary
ConstructorDescriptionRenewPriceParameters
(FeesAndCredits feesAndCredits, Tld tld, com.google.common.net.InternetDomainName domainName, org.joda.time.DateTime asOfDate, int years) Creates an instance of aRenewPriceParameters
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.int
years()
Returns the value of theyears
record component.
-
Constructor Details
-
RenewPriceParameters
public RenewPriceParameters(FeesAndCredits feesAndCredits, Tld tld, com.google.common.net.InternetDomainName domainName, org.joda.time.DateTime asOfDate, int years) Creates an instance of aRenewPriceParameters
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 componentyears
- the value for theyears
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
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
-
years
public int years()Returns the value of theyears
record component.- Returns:
- the value of the
years
record component
-