Class ManagedInstancePrivateEndpointConnectionProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ManagedInstancePrivateEndpointConnectionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstancePrivateEndpointConnectionProperties>
public final class ManagedInstancePrivateEndpointConnectionProperties
extends Object
implements com.azure.json.JsonSerializable<ManagedInstancePrivateEndpointConnectionProperties>
Properties of a private endpoint connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedInstancePrivateEndpointConnectionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedInstancePrivateEndpointConnectionProperties from the JsonReader.Get the privateEndpoint property: Private endpoint which the connection belongs to.Get the privateLinkServiceConnectionState property: Connection State of the Private Endpoint Connection.Get the provisioningState property: State of the Private Endpoint Connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPrivateEndpoint(ManagedInstancePrivateEndpointProperty privateEndpoint) Set the privateEndpoint property: Private endpoint which the connection belongs to.withPrivateLinkServiceConnectionState(ManagedInstancePrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: Connection State of the Private Endpoint Connection.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
-
ManagedInstancePrivateEndpointConnectionProperties
public ManagedInstancePrivateEndpointConnectionProperties()Creates an instance of ManagedInstancePrivateEndpointConnectionProperties class.
-
-
Method Details
-
privateEndpoint
Get the privateEndpoint property: Private endpoint which the connection belongs to.- Returns:
- the privateEndpoint value.
-
withPrivateEndpoint
public ManagedInstancePrivateEndpointConnectionProperties withPrivateEndpoint(ManagedInstancePrivateEndpointProperty privateEndpoint) Set the privateEndpoint property: Private endpoint which the connection belongs to.- Parameters:
privateEndpoint- the privateEndpoint value to set.- Returns:
- the ManagedInstancePrivateEndpointConnectionProperties object itself.
-
privateLinkServiceConnectionState
Get the privateLinkServiceConnectionState property: Connection State of the Private Endpoint Connection.- Returns:
- the privateLinkServiceConnectionState value.
-
withPrivateLinkServiceConnectionState
public ManagedInstancePrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(ManagedInstancePrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: Connection State of the Private Endpoint Connection.- Parameters:
privateLinkServiceConnectionState- the privateLinkServiceConnectionState value to set.- Returns:
- the ManagedInstancePrivateEndpointConnectionProperties object itself.
-
provisioningState
Get the provisioningState property: State of the Private Endpoint Connection.- 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<ManagedInstancePrivateEndpointConnectionProperties>- Throws:
IOException
-
fromJson
public static ManagedInstancePrivateEndpointConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedInstancePrivateEndpointConnectionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedInstancePrivateEndpointConnectionProperties 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 ManagedInstancePrivateEndpointConnectionProperties.
-