Class NotificationHubResourceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.notificationhubs.fluent.models.NotificationHubResourceInner
-
public final class NotificationHubResourceInner extends com.azure.core.management.Resource
Description of a NotificationHub Resource.
-
-
Constructor Summary
Constructors Constructor Description NotificationHubResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdmCredential
admCredential()
Get the admCredential property: The AdmCredential of the created NotificationHub.ApnsCredential
apnsCredential()
Get the apnsCredential property: The ApnsCredential of the created NotificationHub.List<SharedAccessAuthorizationRuleProperties>
authorizationRules()
Get the authorizationRules property: The AuthorizationRules of the created NotificationHub.BaiduCredential
baiduCredential()
Get the baiduCredential property: The BaiduCredential of the created NotificationHub.GcmCredential
gcmCredential()
Get the gcmCredential property: The GcmCredential of the created NotificationHub.MpnsCredential
mpnsCredential()
Get the mpnsCredential property: The MpnsCredential of the created NotificationHub.String
namePropertiesName()
Get the name property: The NotificationHub name.String
registrationTtl()
Get the registrationTtl property: The RegistrationTtl of the created NotificationHub.Sku
sku()
Get the sku property: The sku of the created namespace.void
validate()
Validates the instance.NotificationHubResourceInner
withAdmCredential(AdmCredential admCredential)
Set the admCredential property: The AdmCredential of the created NotificationHub.NotificationHubResourceInner
withApnsCredential(ApnsCredential apnsCredential)
Set the apnsCredential property: The ApnsCredential of the created NotificationHub.NotificationHubResourceInner
withAuthorizationRules(List<SharedAccessAuthorizationRuleProperties> authorizationRules)
Set the authorizationRules property: The AuthorizationRules of the created NotificationHub.NotificationHubResourceInner
withBaiduCredential(BaiduCredential baiduCredential)
Set the baiduCredential property: The BaiduCredential of the created NotificationHub.NotificationHubResourceInner
withGcmCredential(GcmCredential gcmCredential)
Set the gcmCredential property: The GcmCredential of the created NotificationHub.NotificationHubResourceInner
withLocation(String location)
NotificationHubResourceInner
withMpnsCredential(MpnsCredential mpnsCredential)
Set the mpnsCredential property: The MpnsCredential of the created NotificationHub.NotificationHubResourceInner
withNamePropertiesName(String name)
Set the name property: The NotificationHub name.NotificationHubResourceInner
withRegistrationTtl(String registrationTtl)
Set the registrationTtl property: The RegistrationTtl of the created NotificationHub.NotificationHubResourceInner
withSku(Sku sku)
Set the sku property: The sku of the created namespace.NotificationHubResourceInner
withTags(Map<String,String> tags)
NotificationHubResourceInner
withWnsCredential(WnsCredential wnsCredential)
Set the wnsCredential property: The WnsCredential of the created NotificationHub.WnsCredential
wnsCredential()
Get the wnsCredential property: The WnsCredential of the created NotificationHub.
-
-
-
Method Detail
-
sku
public Sku sku()
Get the sku property: The sku of the created namespace.- Returns:
- the sku value.
-
withSku
public NotificationHubResourceInner withSku(Sku sku)
Set the sku property: The sku of the created namespace.- Parameters:
sku
- the sku value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
withLocation
public NotificationHubResourceInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public NotificationHubResourceInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
namePropertiesName
public String namePropertiesName()
Get the name property: The NotificationHub name.- Returns:
- the name value.
-
withNamePropertiesName
public NotificationHubResourceInner withNamePropertiesName(String name)
Set the name property: The NotificationHub name.- Parameters:
name
- the name value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
registrationTtl
public String registrationTtl()
Get the registrationTtl property: The RegistrationTtl of the created NotificationHub.- Returns:
- the registrationTtl value.
-
withRegistrationTtl
public NotificationHubResourceInner withRegistrationTtl(String registrationTtl)
Set the registrationTtl property: The RegistrationTtl of the created NotificationHub.- Parameters:
registrationTtl
- the registrationTtl value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
authorizationRules
public List<SharedAccessAuthorizationRuleProperties> authorizationRules()
Get the authorizationRules property: The AuthorizationRules of the created NotificationHub.- Returns:
- the authorizationRules value.
-
withAuthorizationRules
public NotificationHubResourceInner withAuthorizationRules(List<SharedAccessAuthorizationRuleProperties> authorizationRules)
Set the authorizationRules property: The AuthorizationRules of the created NotificationHub.- Parameters:
authorizationRules
- the authorizationRules value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
apnsCredential
public ApnsCredential apnsCredential()
Get the apnsCredential property: The ApnsCredential of the created NotificationHub.- Returns:
- the apnsCredential value.
-
withApnsCredential
public NotificationHubResourceInner withApnsCredential(ApnsCredential apnsCredential)
Set the apnsCredential property: The ApnsCredential of the created NotificationHub.- Parameters:
apnsCredential
- the apnsCredential value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
wnsCredential
public WnsCredential wnsCredential()
Get the wnsCredential property: The WnsCredential of the created NotificationHub.- Returns:
- the wnsCredential value.
-
withWnsCredential
public NotificationHubResourceInner withWnsCredential(WnsCredential wnsCredential)
Set the wnsCredential property: The WnsCredential of the created NotificationHub.- Parameters:
wnsCredential
- the wnsCredential value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
gcmCredential
public GcmCredential gcmCredential()
Get the gcmCredential property: The GcmCredential of the created NotificationHub.- Returns:
- the gcmCredential value.
-
withGcmCredential
public NotificationHubResourceInner withGcmCredential(GcmCredential gcmCredential)
Set the gcmCredential property: The GcmCredential of the created NotificationHub.- Parameters:
gcmCredential
- the gcmCredential value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
mpnsCredential
public MpnsCredential mpnsCredential()
Get the mpnsCredential property: The MpnsCredential of the created NotificationHub.- Returns:
- the mpnsCredential value.
-
withMpnsCredential
public NotificationHubResourceInner withMpnsCredential(MpnsCredential mpnsCredential)
Set the mpnsCredential property: The MpnsCredential of the created NotificationHub.- Parameters:
mpnsCredential
- the mpnsCredential value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
admCredential
public AdmCredential admCredential()
Get the admCredential property: The AdmCredential of the created NotificationHub.- Returns:
- the admCredential value.
-
withAdmCredential
public NotificationHubResourceInner withAdmCredential(AdmCredential admCredential)
Set the admCredential property: The AdmCredential of the created NotificationHub.- Parameters:
admCredential
- the admCredential value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
baiduCredential
public BaiduCredential baiduCredential()
Get the baiduCredential property: The BaiduCredential of the created NotificationHub.- Returns:
- the baiduCredential value.
-
withBaiduCredential
public NotificationHubResourceInner withBaiduCredential(BaiduCredential baiduCredential)
Set the baiduCredential property: The BaiduCredential of the created NotificationHub.- Parameters:
baiduCredential
- the baiduCredential value to set.- Returns:
- the NotificationHubResourceInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-