Class PrivateLinkResource
java.lang.Object
com.azure.resourcemanager.appservice.models.PrivateLinkResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PrivateLinkResource>
public final class PrivateLinkResource
extends Object
implements com.azure.json.JsonSerializable<PrivateLinkResource>
A private link resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateLinkResource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of PrivateLinkResource from the JsonReader.id()
Get the id property: The id property.name()
Get the name property: Name of a private link resource.Get the properties property: Properties of a private link resource.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type property.void
validate()
Validates the instance.Set the id property: The id property.Set the name property: Name of a private link resource.withProperties
(PrivateLinkResourceProperties properties) Set the properties property: Properties of a private link resource.Set the type property: The type property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PrivateLinkResource
public PrivateLinkResource()Creates an instance of PrivateLinkResource class.
-
-
Method Details
-
id
Get the id property: The id property.- Returns:
- the id value.
-
withId
Set the id property: The id property.- Parameters:
id
- the id value to set.- Returns:
- the PrivateLinkResource object itself.
-
name
Get the name property: Name of a private link resource.- Returns:
- the name value.
-
withName
Set the name property: Name of a private link resource.- Parameters:
name
- the name value to set.- Returns:
- the PrivateLinkResource object itself.
-
type
Get the type property: The type property.- Returns:
- the type value.
-
withType
Set the type property: The type property.- Parameters:
type
- the type value to set.- Returns:
- the PrivateLinkResource object itself.
-
properties
Get the properties property: Properties of a private link resource.- Returns:
- the properties value.
-
withProperties
Set the properties property: Properties of a private link resource.- Parameters:
properties
- the properties value to set.- Returns:
- the PrivateLinkResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<PrivateLinkResource>
- Throws:
IOException
-
fromJson
Reads an instance of PrivateLinkResource from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of PrivateLinkResource 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 PrivateLinkResource.
-