Class SharedPrivateLinkResourceProperties
java.lang.Object
com.azure.resourcemanager.cdn.models.SharedPrivateLinkResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SharedPrivateLinkResourceProperties>
public final class SharedPrivateLinkResourceProperties
extends Object
implements com.azure.json.JsonSerializable<SharedPrivateLinkResourceProperties>
Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SharedPrivateLinkResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharedPrivateLinkResourceProperties from the JsonReader.groupId()Get the groupId property: The group id from the provider of resource the shared private link resource is for.Get the privateLink property: The resource id of the resource the shared private link resource is for.Get the privateLinkLocation property: The location of the shared private link resource.Get the requestMessage property: The request message for requesting approval of the shared private link resource.status()Get the status property: Status of the shared private link resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGroupId(String groupId) Set the groupId property: The group id from the provider of resource the shared private link resource is for.withPrivateLink(ResourceReference privateLink) Set the privateLink property: The resource id of the resource the shared private link resource is for.withPrivateLinkLocation(String privateLinkLocation) Set the privateLinkLocation property: The location of the shared private link resource.withRequestMessage(String requestMessage) Set the requestMessage property: The request message for requesting approval of the shared private link resource.Set the status property: Status of the shared private link resource.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
-
SharedPrivateLinkResourceProperties
public SharedPrivateLinkResourceProperties()Creates an instance of SharedPrivateLinkResourceProperties class.
-
-
Method Details
-
privateLink
Get the privateLink property: The resource id of the resource the shared private link resource is for.- Returns:
- the privateLink value.
-
withPrivateLink
Set the privateLink property: The resource id of the resource the shared private link resource is for.- Parameters:
privateLink- the privateLink value to set.- Returns:
- the SharedPrivateLinkResourceProperties object itself.
-
privateLinkLocation
Get the privateLinkLocation property: The location of the shared private link resource.- Returns:
- the privateLinkLocation value.
-
withPrivateLinkLocation
Set the privateLinkLocation property: The location of the shared private link resource.- Parameters:
privateLinkLocation- the privateLinkLocation value to set.- Returns:
- the SharedPrivateLinkResourceProperties object itself.
-
groupId
Get the groupId property: The group id from the provider of resource the shared private link resource is for.- Returns:
- the groupId value.
-
withGroupId
Set the groupId property: The group id from the provider of resource the shared private link resource is for.- Parameters:
groupId- the groupId value to set.- Returns:
- the SharedPrivateLinkResourceProperties object itself.
-
requestMessage
Get the requestMessage property: The request message for requesting approval of the shared private link resource.- Returns:
- the requestMessage value.
-
withRequestMessage
Set the requestMessage property: The request message for requesting approval of the shared private link resource.- Parameters:
requestMessage- the requestMessage value to set.- Returns:
- the SharedPrivateLinkResourceProperties object itself.
-
status
Get the status property: Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.- Returns:
- the status value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SharedPrivateLinkResourceProperties>- Throws:
IOException
-
fromJson
public static SharedPrivateLinkResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SharedPrivateLinkResourceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SharedPrivateLinkResourceProperties 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 SharedPrivateLinkResourceProperties.
-