Class SharedPrivateLinkResourceProperties
java.lang.Object
com.azure.resourcemanager.search.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 managed by the Azure AI Search service.
-
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 privateLinkResourceId property: The resource ID of the resource the shared private link resource is for.Get the provisioningState property: The provisioning state of the shared private link resource.Get the requestMessage property: The message for requesting approval of the shared private link resource.Get the resourceRegion property: Optional.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.withPrivateLinkResourceId(String privateLinkResourceId) Set the privateLinkResourceId property: The resource ID of the resource the shared private link resource is for.withProvisioningState(SharedPrivateLinkResourceProvisioningState provisioningState) Set the provisioningState property: The provisioning state of the shared private link resource.withRequestMessage(String requestMessage) Set the requestMessage property: The message for requesting approval of the shared private link resource.withResourceRegion(String resourceRegion) Set the resourceRegion property: Optional.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
-
privateLinkResourceId
Get the privateLinkResourceId property: The resource ID of the resource the shared private link resource is for.- Returns:
- the privateLinkResourceId value.
-
withPrivateLinkResourceId
Set the privateLinkResourceId property: The resource ID of the resource the shared private link resource is for.- Parameters:
privateLinkResourceId- the privateLinkResourceId 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 message for requesting approval of the shared private link resource.- Returns:
- the requestMessage value.
-
withRequestMessage
Set the requestMessage property: The message for requesting approval of the shared private link resource.- Parameters:
requestMessage- the requestMessage value to set.- Returns:
- the SharedPrivateLinkResourceProperties object itself.
-
resourceRegion
Get the resourceRegion property: Optional. Can be used to specify the Azure Resource Manager location of the resource for which a shared private link is being created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service).- Returns:
- the resourceRegion value.
-
withResourceRegion
Set the resourceRegion property: Optional. Can be used to specify the Azure Resource Manager location of the resource for which a shared private link is being created. This is only required for those resources whose DNS configuration are regional (such as Azure Kubernetes Service).- Parameters:
resourceRegion- the resourceRegion value to set.- Returns:
- the SharedPrivateLinkResourceProperties object itself.
-
status
Get the status property: Status of the shared private link resource. Valid values are Pending, Approved, Rejected or Disconnected.- Returns:
- the status value.
-
provisioningState
Get the provisioningState property: The provisioning state of the shared private link resource. Valid values are Updating, Deleting, Failed, Succeeded or Incomplete.- Returns:
- the provisioningState 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.
-