Class CloudPcOnPremisesConnectionItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.devicemanagement.virtualendpoint.onpremisesconnections.item.CloudPcOnPremisesConnectionItemRequestBuilder

@Generated("com.microsoft.kiota") public class CloudPcOnPremisesConnectionItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the onPremisesConnections property of the microsoft.graph.virtualEndpoint entity.
  • Constructor Details

    • CloudPcOnPremisesConnectionItemRequestBuilder

      public CloudPcOnPremisesConnectionItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new CloudPcOnPremisesConnectionItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • CloudPcOnPremisesConnectionItemRequestBuilder

      public CloudPcOnPremisesConnectionItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new CloudPcOnPremisesConnectionItemRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • runHealthChecks

      @Nonnull public RunHealthChecksRequestBuilder runHealthChecks()
      Provides operations to call the runHealthChecks method.
      Returns:
      a RunHealthChecksRequestBuilder
    • delete

      public void delete()
      Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • delete

      public void delete(@Nullable Consumer<CloudPcOnPremisesConnectionItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public CloudPcOnPremisesConnection get()
      Read the properties and relationships of the cloudPcOnPremisesConnection object.
      Returns:
      a CloudPcOnPremisesConnection
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Read the properties and relationships of the cloudPcOnPremisesConnection object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a CloudPcOnPremisesConnection
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public CloudPcOnPremisesConnection patch(@Nonnull CloudPcOnPremisesConnection body)
      Update the properties of a cloudPcOnPremisesConnection object.
      Parameters:
      body - The request body
      Returns:
      a CloudPcOnPremisesConnection
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      Update the properties of a cloudPcOnPremisesConnection object.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a CloudPcOnPremisesConnection
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property.
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<CloudPcOnPremisesConnectionItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete a specific cloudPcOnPremisesConnection object. When you delete an Azure network connection, permissions to the service are removed from the specified Azure resources. You cannot delete an Azure network connection when it's in use, as indicated by the inUse property.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Read the properties and relationships of the cloudPcOnPremisesConnection object.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<CloudPcOnPremisesConnectionItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Read the properties and relationships of the cloudPcOnPremisesConnection object.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull CloudPcOnPremisesConnection body)
      Update the properties of a cloudPcOnPremisesConnection object.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull CloudPcOnPremisesConnection body, @Nullable Consumer<CloudPcOnPremisesConnectionItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update the properties of a cloudPcOnPremisesConnection object.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public CloudPcOnPremisesConnectionItemRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a CloudPcOnPremisesConnectionItemRequestBuilder