Interface NotificationHubResource
-
public interface NotificationHubResource
An immutable client-side representation of NotificationHubResource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
NotificationHubResource.Definition
The entirety of the NotificationHubResource definition.static interface
NotificationHubResource.DefinitionStages
The NotificationHubResource definition stages.static interface
NotificationHubResource.Update
The template for NotificationHubResource update.static interface
NotificationHubResource.UpdateStages
The NotificationHubResource update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdmCredential
admCredential()
Gets the admCredential property: The AdmCredential of the created NotificationHub.ApnsCredential
apnsCredential()
Gets the apnsCredential property: The ApnsCredential of the created NotificationHub.List<SharedAccessAuthorizationRuleProperties>
authorizationRules()
Gets the authorizationRules property: The AuthorizationRules of the created NotificationHub.BaiduCredential
baiduCredential()
Gets the baiduCredential property: The BaiduCredential of the created NotificationHub.DebugSendResponse
debugSend()
test send a push notification.com.azure.core.http.rest.Response<DebugSendResponse>
debugSendWithResponse(Object parameters, com.azure.core.util.Context context)
test send a push notification.GcmCredential
gcmCredential()
Gets the gcmCredential property: The GcmCredential of the created NotificationHub.PnsCredentialsResource
getPnsCredentials()
Lists the PNS Credentials associated with a notification hub .com.azure.core.http.rest.Response<PnsCredentialsResource>
getPnsCredentialsWithResponse(com.azure.core.util.Context context)
Lists the PNS Credentials associated with a notification hub .String
id()
Gets the id property: Fully qualified resource Id for the resource.NotificationHubResourceInner
innerModel()
Gets the inner com.azure.resourcemanager.notificationhubs.fluent.models.NotificationHubResourceInner object.String
location()
Gets the location property: The geo-location where the resource lives.MpnsCredential
mpnsCredential()
Gets the mpnsCredential property: The MpnsCredential of the created NotificationHub.String
name()
Gets the name property: The name of the resource.String
namePropertiesName()
Gets the namePropertiesName property: The NotificationHub name.NotificationHubResource
refresh()
Refreshes the resource to sync with Azure.NotificationHubResource
refresh(com.azure.core.util.Context context)
Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.String
regionName()
Gets the name of the resource region.String
registrationTtl()
Gets the registrationTtl property: The RegistrationTtl of the created NotificationHub.Sku
sku()
Gets the sku property: The sku of the created namespace.Map<String,String>
tags()
Gets the tags property: Resource tags.String
type()
Gets the type property: The type of the resource.NotificationHubResource.Update
update()
Begins update for the NotificationHubResource resource.WnsCredential
wnsCredential()
Gets the wnsCredential property: The WnsCredential of the created NotificationHub.
-
-
-
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.
-
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.
-
update
NotificationHubResource.Update update()
Begins update for the NotificationHubResource resource.- Returns:
- the stage of resource update.
-
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.
-
-