Class MhsmPrivateEndpointConnectionProperties

java.lang.Object
com.azure.resourcemanager.keyvault.fluent.models.MhsmPrivateEndpointConnectionProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<MhsmPrivateEndpointConnectionProperties>

public final class MhsmPrivateEndpointConnectionProperties extends Object implements com.azure.json.JsonSerializable<MhsmPrivateEndpointConnectionProperties>
Properties of the private endpoint connection resource.
  • Constructor Details

    • MhsmPrivateEndpointConnectionProperties

      public MhsmPrivateEndpointConnectionProperties()
      Creates an instance of MhsmPrivateEndpointConnectionProperties class.
  • Method Details

    • privateEndpoint

      public MhsmPrivateEndpoint privateEndpoint()
      Get the privateEndpoint property: Properties of the private endpoint object.
      Returns:
      the privateEndpoint value.
    • withPrivateEndpoint

      public MhsmPrivateEndpointConnectionProperties withPrivateEndpoint(MhsmPrivateEndpoint privateEndpoint)
      Set the privateEndpoint property: Properties of the private endpoint object.
      Parameters:
      privateEndpoint - the privateEndpoint value to set.
      Returns:
      the MhsmPrivateEndpointConnectionProperties object itself.
    • privateLinkServiceConnectionState

      public MhsmPrivateLinkServiceConnectionState privateLinkServiceConnectionState()
      Get the privateLinkServiceConnectionState property: Approval state of the private link connection.
      Returns:
      the privateLinkServiceConnectionState value.
    • withPrivateLinkServiceConnectionState

      public MhsmPrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(MhsmPrivateLinkServiceConnectionState privateLinkServiceConnectionState)
      Set the privateLinkServiceConnectionState property: Approval state of the private link connection.
      Parameters:
      privateLinkServiceConnectionState - the privateLinkServiceConnectionState value to set.
      Returns:
      the MhsmPrivateEndpointConnectionProperties object itself.
    • provisioningState

      public PrivateEndpointConnectionProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the private endpoint connection.
      Returns:
      the provisioningState value.
    • withProvisioningState

      Set the provisioningState property: Provisioning state of the private endpoint connection.
      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the MhsmPrivateEndpointConnectionProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MhsmPrivateEndpointConnectionProperties>
      Throws:
      IOException
    • fromJson

      public static MhsmPrivateEndpointConnectionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MhsmPrivateEndpointConnectionProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MhsmPrivateEndpointConnectionProperties 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 MhsmPrivateEndpointConnectionProperties.