Class SharedPrivateLinkResource
java.lang.Object
com.azure.resourcemanager.machinelearning.models.SharedPrivateLinkResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SharedPrivateLinkResource>
public final class SharedPrivateLinkResource
extends Object
implements com.azure.json.JsonSerializable<SharedPrivateLinkResource>
The SharedPrivateLinkResource model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SharedPrivateLinkResource class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SharedPrivateLinkResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharedPrivateLinkResource from the JsonReader.groupId()Get the groupId property: The private link resource group id.name()Get the name property: Unique name of the private link.Get the privateLinkResourceId property: The resource id that private link links to.Get the requestMessage property: Request message.status()Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGroupId(String groupId) Set the groupId property: The private link resource group id.Set the name property: Unique name of the private link.withPrivateLinkResourceId(String privateLinkResourceId) Set the privateLinkResourceId property: The resource id that private link links to.withRequestMessage(String requestMessage) Set the requestMessage property: Request message.Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.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
-
SharedPrivateLinkResource
public SharedPrivateLinkResource()Creates an instance of SharedPrivateLinkResource class.
-
-
Method Details
-
name
Get the name property: Unique name of the private link.- Returns:
- the name value.
-
withName
Set the name property: Unique name of the private link.- Parameters:
name- the name value to set.- Returns:
- the SharedPrivateLinkResource object itself.
-
privateLinkResourceId
Get the privateLinkResourceId property: The resource id that private link links to.- Returns:
- the privateLinkResourceId value.
-
withPrivateLinkResourceId
Set the privateLinkResourceId property: The resource id that private link links to.- Parameters:
privateLinkResourceId- the privateLinkResourceId value to set.- Returns:
- the SharedPrivateLinkResource object itself.
-
groupId
Get the groupId property: The private link resource group id.- Returns:
- the groupId value.
-
withGroupId
Set the groupId property: The private link resource group id.- Parameters:
groupId- the groupId value to set.- Returns:
- the SharedPrivateLinkResource object itself.
-
requestMessage
Get the requestMessage property: Request message.- Returns:
- the requestMessage value.
-
withRequestMessage
Set the requestMessage property: Request message.- Parameters:
requestMessage- the requestMessage value to set.- Returns:
- the SharedPrivateLinkResource object itself.
-
status
Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.- Returns:
- the status value.
-
withStatus
Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.- Parameters:
status- the status value to set.- Returns:
- the SharedPrivateLinkResource 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<SharedPrivateLinkResource>- Throws:
IOException
-
fromJson
public static SharedPrivateLinkResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SharedPrivateLinkResource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SharedPrivateLinkResource 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 SharedPrivateLinkResource.
-