Class ApiContactInformation
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ApiContactInformation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApiContactInformation>
public final class ApiContactInformation
extends Object
implements com.azure.json.JsonSerializable<ApiContactInformation>
API contact information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()Get the email property: The email address of the contact person/organization.static ApiContactInformationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApiContactInformation from the JsonReader.name()Get the name property: The identifying name of the contact person/organization.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) url()Get the url property: The URL pointing to the contact information.voidvalidate()Validates the instance.Set the email property: The email address of the contact person/organization.Set the name property: The identifying name of the contact person/organization.Set the url property: The URL pointing to the contact information.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
-
ApiContactInformation
public ApiContactInformation()Creates an instance of ApiContactInformation class.
-
-
Method Details
-
name
Get the name property: The identifying name of the contact person/organization.- Returns:
- the name value.
-
withName
Set the name property: The identifying name of the contact person/organization.- Parameters:
name- the name value to set.- Returns:
- the ApiContactInformation object itself.
-
url
Get the url property: The URL pointing to the contact information. MUST be in the format of a URL.- Returns:
- the url value.
-
withUrl
Set the url property: The URL pointing to the contact information. MUST be in the format of a URL.- Parameters:
url- the url value to set.- Returns:
- the ApiContactInformation object itself.
-
email
Get the email property: The email address of the contact person/organization. MUST be in the format of an email address.- Returns:
- the email value.
-
withEmail
Set the email property: The email address of the contact person/organization. MUST be in the format of an email address.- Parameters:
email- the email value to set.- Returns:
- the ApiContactInformation 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<ApiContactInformation>- Throws:
IOException
-
fromJson
public static ApiContactInformation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApiContactInformation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApiContactInformation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ApiContactInformation.
-