Class ServiceEndpointHelpersRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.serviceendpoint.ServiceEndpointRequestBuilder
org.azd.helpers.serviceendpoint.ServiceEndpointHelpersRequestBuilder

public class ServiceEndpointHelpersRequestBuilder extends ServiceEndpointRequestBuilder
Helper request builder that combines multiple Apis to create logical helper methods for ease of use.
  • Constructor Details

    • ServiceEndpointHelpersRequestBuilder

      public ServiceEndpointHelpersRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
      Instantiates a new RequestBuilder instance and sets the default values.
      Parameters:
      organizationUrl - Represents organization location request url.
      accessTokenCredential - Access token credential object.
  • Method Details

    • createAzureRMServiceEndpoint

      public ServiceEndpoint createAzureRMServiceEndpoint(String endpointName, String servicePrincipalId, String servicePrincipalKey, String tenantId, String subscriptionId, String subscriptionName) throws AzDException
      A helper method to create Azure RM service endpoint
      Parameters:
      endpointName - Friendly name of the endpoint
      servicePrincipalId - service principal Id
      servicePrincipalKey - service principal key
      tenantId - Tenant Id
      subscriptionId - subscription Id
      subscriptionName - subscription name
      Returns:
      ServiceEndpoint ServiceEndpoint
      Throws:
      AzDException - Default Api Exception handler.