Class ApiContactInformation
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.ApiContactInformation
-
public final class ApiContactInformation extends Object
API contact information.
-
-
Constructor Summary
Constructors Constructor Description ApiContactInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
email()
Get the email property: The email address of the contact person/organization.String
name()
Get the name property: The identifying name of the contact person/organization.String
url()
Get the url property: The URL pointing to the contact information.void
validate()
Validates the instance.ApiContactInformation
withEmail(String email)
Set the email property: The email address of the contact person/organization.ApiContactInformation
withName(String name)
Set the name property: The identifying name of the contact person/organization.ApiContactInformation
withUrl(String url)
Set the url property: The URL pointing to the contact information.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The identifying name of the contact person/organization.- Returns:
- the name value.
-
withName
public ApiContactInformation withName(String name)
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
public String 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
public ApiContactInformation withUrl(String url)
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
public String 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
public ApiContactInformation withEmail(String email)
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.
-
-