Class TermsOfServiceProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.TermsOfServiceProperties
-
public final class TermsOfServiceProperties extends Object
Terms of service contract properties.
-
-
Constructor Summary
Constructors Constructor Description TermsOfServiceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
consentRequired()
Get the consentRequired property: Ask user for consent to the terms of service.Boolean
enabled()
Get the enabled property: Display terms of service during a sign-up process.String
text()
Get the text property: A terms of service text.void
validate()
Validates the instance.TermsOfServiceProperties
withConsentRequired(Boolean consentRequired)
Set the consentRequired property: Ask user for consent to the terms of service.TermsOfServiceProperties
withEnabled(Boolean enabled)
Set the enabled property: Display terms of service during a sign-up process.TermsOfServiceProperties
withText(String text)
Set the text property: A terms of service text.
-
-
-
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.
-
-