Class PrivateLinkServiceConnectionProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.PrivateLinkServiceConnectionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PrivateLinkServiceConnectionProperties>
public final class PrivateLinkServiceConnectionProperties
extends Object
implements com.azure.json.JsonSerializable<PrivateLinkServiceConnectionProperties>
Properties of the PrivateLinkServiceConnection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PrivateLinkServiceConnectionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PrivateLinkServiceConnectionProperties from the JsonReader.groupIds()Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.Get the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.Get the privateLinkServiceId property: The resource id of private link service.Get the provisioningState property: The provisioning state of the private link service connection resource.Get the requestMessage property: A message passed to the owner of the remote resource with this connection request.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGroupIds(List<String> groupIds) Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.withPrivateLinkServiceId(String privateLinkServiceId) Set the privateLinkServiceId property: The resource id of private link service.withRequestMessage(String requestMessage) Set the requestMessage property: A message passed to the owner of the remote resource with this connection request.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
-
PrivateLinkServiceConnectionProperties
public PrivateLinkServiceConnectionProperties()Creates an instance of PrivateLinkServiceConnectionProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the private link service connection resource.- Returns:
- the provisioningState value.
-
privateLinkServiceId
Get the privateLinkServiceId property: The resource id of private link service.- Returns:
- the privateLinkServiceId value.
-
withPrivateLinkServiceId
Set the privateLinkServiceId property: The resource id of private link service.- Parameters:
privateLinkServiceId- the privateLinkServiceId value to set.- Returns:
- the PrivateLinkServiceConnectionProperties object itself.
-
groupIds
Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.- Returns:
- the groupIds value.
-
withGroupIds
Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to.- Parameters:
groupIds- the groupIds value to set.- Returns:
- the PrivateLinkServiceConnectionProperties object itself.
-
requestMessage
Get the requestMessage property: A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.- Returns:
- the requestMessage value.
-
withRequestMessage
Set the requestMessage property: A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.- Parameters:
requestMessage- the requestMessage value to set.- Returns:
- the PrivateLinkServiceConnectionProperties object itself.
-
privateLinkServiceConnectionState
Get the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.- Returns:
- the privateLinkServiceConnectionState value.
-
withPrivateLinkServiceConnectionState
public PrivateLinkServiceConnectionProperties withPrivateLinkServiceConnectionState(PrivateLinkServiceConnectionState privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: A collection of read-only information about the state of the connection to the remote resource.- Parameters:
privateLinkServiceConnectionState- the privateLinkServiceConnectionState value to set.- Returns:
- the PrivateLinkServiceConnectionProperties 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<PrivateLinkServiceConnectionProperties>- Throws:
IOException
-
fromJson
public static PrivateLinkServiceConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PrivateLinkServiceConnectionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PrivateLinkServiceConnectionProperties 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 PrivateLinkServiceConnectionProperties.
-