Class TermsOfServiceProperties


  • public final class TermsOfServiceProperties
    extends Object
    Terms of service contract properties.
    • Constructor Detail

      • TermsOfServiceProperties

        public TermsOfServiceProperties()
    • Method Detail

      • text

        public String text()
        Get the text property: A terms of service text.
        Returns:
        the text value.
      • withText

        public TermsOfServiceProperties withText​(String text)
        Set the text property: A terms of service text.
        Parameters:
        text - the text value to set.
        Returns:
        the TermsOfServiceProperties object itself.
      • enabled

        public Boolean enabled()
        Get the enabled property: Display terms of service during a sign-up process.
        Returns:
        the enabled value.
      • withEnabled

        public TermsOfServiceProperties withEnabled​(Boolean enabled)
        Set the enabled property: Display terms of service during a sign-up process.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the TermsOfServiceProperties object itself.
      • consentRequired

        public Boolean consentRequired()
        Get the consentRequired property: Ask user for consent to the terms of service.
        Returns:
        the consentRequired value.
      • withConsentRequired

        public TermsOfServiceProperties withConsentRequired​(Boolean consentRequired)
        Set the consentRequired property: Ask user for consent to the terms of service.
        Parameters:
        consentRequired - the consentRequired value to set.
        Returns:
        the TermsOfServiceProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.