Class TldLegalAgreementInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.TldLegalAgreementInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TldLegalAgreementInner>
public final class TldLegalAgreementInner
extends Object
implements com.azure.json.JsonSerializable<TldLegalAgreementInner>
Legal agreement for a top level domain.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TldLegalAgreementInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the agreementKey property: Unique identifier for the agreement.content()Get the content property: Agreement details.static TldLegalAgreementInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TldLegalAgreementInner from the JsonReader.title()Get the title property: Agreement title.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: URL where a copy of the agreement details is hosted.voidvalidate()Validates the instance.withAgreementKey(String agreementKey) Set the agreementKey property: Unique identifier for the agreement.withContent(String content) Set the content property: Agreement details.Set the title property: Agreement title.Set the url property: URL where a copy of the agreement details is hosted.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TldLegalAgreementInner
public TldLegalAgreementInner()Creates an instance of TldLegalAgreementInner class.
-
-
Method Details
-
agreementKey
Get the agreementKey property: Unique identifier for the agreement.- Returns:
- the agreementKey value.
-
withAgreementKey
Set the agreementKey property: Unique identifier for the agreement.- Parameters:
agreementKey- the agreementKey value to set.- Returns:
- the TldLegalAgreementInner object itself.
-
title
Get the title property: Agreement title.- Returns:
- the title value.
-
withTitle
Set the title property: Agreement title.- Parameters:
title- the title value to set.- Returns:
- the TldLegalAgreementInner object itself.
-
content
Get the content property: Agreement details.- Returns:
- the content value.
-
withContent
Set the content property: Agreement details.- Parameters:
content- the content value to set.- Returns:
- the TldLegalAgreementInner object itself.
-
url
Get the url property: URL where a copy of the agreement details is hosted.- Returns:
- the url value.
-
withUrl
Set the url property: URL where a copy of the agreement details is hosted.- Parameters:
url- the url value to set.- Returns:
- the TldLegalAgreementInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TldLegalAgreementInner>- Throws:
IOException
-
fromJson
public static TldLegalAgreementInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TldLegalAgreementInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TldLegalAgreementInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the TldLegalAgreementInner.
-