code: public Observable<ServiceResponse<ManagedClusterAccessProfileInner>> getAccessProfileWithServiceResponseAsync(String resourceGroupName, String resourceName, String roleName) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (resourceName == null) {
              throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
          }
          if (roleName == null) {
              throw new IllegalArgumentException("Parameter roleName is required and cannot be null.");
          }
          final String apiVersion = "2019-02-01";
          return service.getAccessProfile(this.client.subscriptionId(), resourceGroupName, resourceName, roleName, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ManagedClusterAccessProfileInner>>>() {
                  @Override
                  public Observable<ServiceResponse<ManagedClusterAccessProfileInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<ManagedClusterAccessProfileInner> clientResponse = getAccessProfileDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Gets an access profile of a managed cluster.
  Gets the accessProfile for the specified role name of the managed cluster with a specified resource group and name.
  
  @param resourceGroupName The name of the resource group.
  @param resourceName The name of the managed cluster resource.
  @param roleName The name of the role for managed cluster accessProfile resource.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ManagedClusterAccessProfileInner object