public Observable<ManagedClusterAccessProfileInner> getAccessProfileAsync(String resourceGroupName, String resourceName, String roleName) {
        return getAccessProfileWithServiceResponseAsync(resourceGroupName, resourceName, roleName).map(new Func1<ServiceResponse<ManagedClusterAccessProfileInner>, ManagedClusterAccessProfileInner>() {
            @Override
            public ManagedClusterAccessProfileInner call(ServiceResponse<ManagedClusterAccessProfileInner> response) {
                return response.body();
            }
        });
    }
public Observable < ManagedClusterAccessProfileInner > getAccessProfileAsync ( String resourceGroupName , String resourceName , String roleName ) { return getAccessProfileWithServiceResponseAsync ( resourceGroupName , resourceName , roleName ) . map ( new Func1 < ServiceResponse < ManagedClusterAccessProfileInner > , ManagedClusterAccessProfileInner > ( ) { @ Override public ManagedClusterAccessProfileInner call ( ServiceResponse < ManagedClusterAccessProfileInner > response ) { return response . body ( ) ; } } ) ; }
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