Interface NotificationHubResource


  • public interface NotificationHubResource
    An immutable client-side representation of NotificationHubResource.
    • Method Detail

      • id

        String id()
        Gets the id property: Fully qualified resource Id for the resource.
        Returns:
        the id value.
      • name

        String name()
        Gets the name property: The name of the resource.
        Returns:
        the name value.
      • type

        String type()
        Gets the type property: The type of the resource.
        Returns:
        the type value.
      • location

        String location()
        Gets the location property: The geo-location where the resource lives.
        Returns:
        the location value.
      • tags

        Map<String,​String> tags()
        Gets the tags property: Resource tags.
        Returns:
        the tags value.
      • sku

        Sku sku()
        Gets the sku property: The sku of the created namespace.
        Returns:
        the sku value.
      • namePropertiesName

        String namePropertiesName()
        Gets the namePropertiesName property: The NotificationHub name.
        Returns:
        the namePropertiesName value.
      • registrationTtl

        String registrationTtl()
        Gets the registrationTtl property: The RegistrationTtl of the created NotificationHub.
        Returns:
        the registrationTtl value.
      • authorizationRules

        List<SharedAccessAuthorizationRuleProperties> authorizationRules()
        Gets the authorizationRules property: The AuthorizationRules of the created NotificationHub.
        Returns:
        the authorizationRules value.
      • apnsCredential

        ApnsCredential apnsCredential()
        Gets the apnsCredential property: The ApnsCredential of the created NotificationHub.
        Returns:
        the apnsCredential value.
      • wnsCredential

        WnsCredential wnsCredential()
        Gets the wnsCredential property: The WnsCredential of the created NotificationHub.
        Returns:
        the wnsCredential value.
      • gcmCredential

        GcmCredential gcmCredential()
        Gets the gcmCredential property: The GcmCredential of the created NotificationHub.
        Returns:
        the gcmCredential value.
      • mpnsCredential

        MpnsCredential mpnsCredential()
        Gets the mpnsCredential property: The MpnsCredential of the created NotificationHub.
        Returns:
        the mpnsCredential value.
      • admCredential

        AdmCredential admCredential()
        Gets the admCredential property: The AdmCredential of the created NotificationHub.
        Returns:
        the admCredential value.
      • baiduCredential

        BaiduCredential baiduCredential()
        Gets the baiduCredential property: The BaiduCredential of the created NotificationHub.
        Returns:
        the baiduCredential value.
      • region

        com.azure.core.management.Region region()
        Gets the region of the resource.
        Returns:
        the region of the resource.
      • regionName

        String regionName()
        Gets the name of the resource region.
        Returns:
        the name of the resource region.
      • innerModel

        NotificationHubResourceInner innerModel()
        Gets the inner com.azure.resourcemanager.notificationhubs.fluent.models.NotificationHubResourceInner object.
        Returns:
        the inner object.
      • refresh

        NotificationHubResource refresh()
        Refreshes the resource to sync with Azure.
        Returns:
        the refreshed resource.
      • refresh

        NotificationHubResource refresh​(com.azure.core.util.Context context)
        Refreshes the resource to sync with Azure.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the refreshed resource.
      • debugSend

        DebugSendResponse debugSend()
        test send a push notification.
        Returns:
        description of a NotificationHub Resource.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • debugSendWithResponse

        com.azure.core.http.rest.Response<DebugSendResponse> debugSendWithResponse​(Object parameters,
                                                                                   com.azure.core.util.Context context)
        test send a push notification.
        Parameters:
        parameters - Debug send parameters.
        context - The context to associate with this operation.
        Returns:
        description of a NotificationHub Resource.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getPnsCredentials

        PnsCredentialsResource getPnsCredentials()
        Lists the PNS Credentials associated with a notification hub .
        Returns:
        description of a NotificationHub PNS Credentials.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getPnsCredentialsWithResponse

        com.azure.core.http.rest.Response<PnsCredentialsResource> getPnsCredentialsWithResponse​(com.azure.core.util.Context context)
        Lists the PNS Credentials associated with a notification hub .
        Parameters:
        context - The context to associate with this operation.
        Returns:
        description of a NotificationHub PNS Credentials.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.