Class NotificationHubProperties
- java.lang.Object
-
- com.azure.resourcemanager.notificationhubs.fluent.models.NotificationHubProperties
-
public final class NotificationHubProperties extends Object
NotificationHub properties.
-
-
Constructor Summary
Constructors Constructor Description NotificationHubProperties()
-
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
name()
Get the name property: The NotificationHub name.String
registrationTtl()
Get the registrationTtl property: The RegistrationTtl of the created NotificationHub.void
validate()
Validates the instance.NotificationHubProperties
withAdmCredential(AdmCredential admCredential)
Set the admCredential property: The AdmCredential of the created NotificationHub.NotificationHubProperties
withApnsCredential(ApnsCredential apnsCredential)
Set the apnsCredential property: The ApnsCredential of the created NotificationHub.NotificationHubProperties
withAuthorizationRules(List<SharedAccessAuthorizationRuleProperties> authorizationRules)
Set the authorizationRules property: The AuthorizationRules of the created NotificationHub.NotificationHubProperties
withBaiduCredential(BaiduCredential baiduCredential)
Set the baiduCredential property: The BaiduCredential of the created NotificationHub.NotificationHubProperties
withGcmCredential(GcmCredential gcmCredential)
Set the gcmCredential property: The GcmCredential of the created NotificationHub.NotificationHubProperties
withMpnsCredential(MpnsCredential mpnsCredential)
Set the mpnsCredential property: The MpnsCredential of the created NotificationHub.NotificationHubProperties
withName(String name)
Set the name property: The NotificationHub name.NotificationHubProperties
withRegistrationTtl(String registrationTtl)
Set the registrationTtl property: The RegistrationTtl of the created NotificationHub.NotificationHubProperties
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
-
name
public String name()
Get the name property: The NotificationHub name.- Returns:
- the name value.
-
withName
public NotificationHubProperties withName(String name)
Set the name property: The NotificationHub name.- Parameters:
name
- the name value to set.- Returns:
- the NotificationHubProperties object itself.
-
registrationTtl
public String registrationTtl()
Get the registrationTtl property: The RegistrationTtl of the created NotificationHub.- Returns:
- the registrationTtl value.
-
withRegistrationTtl
public NotificationHubProperties withRegistrationTtl(String registrationTtl)
Set the registrationTtl property: The RegistrationTtl of the created NotificationHub.- Parameters:
registrationTtl
- the registrationTtl value to set.- Returns:
- the NotificationHubProperties object itself.
-
authorizationRules
public List<SharedAccessAuthorizationRuleProperties> authorizationRules()
Get the authorizationRules property: The AuthorizationRules of the created NotificationHub.- Returns:
- the authorizationRules value.
-
withAuthorizationRules
public NotificationHubProperties withAuthorizationRules(List<SharedAccessAuthorizationRuleProperties> authorizationRules)
Set the authorizationRules property: The AuthorizationRules of the created NotificationHub.- Parameters:
authorizationRules
- the authorizationRules value to set.- Returns:
- the NotificationHubProperties object itself.
-
apnsCredential
public ApnsCredential apnsCredential()
Get the apnsCredential property: The ApnsCredential of the created NotificationHub.- Returns:
- the apnsCredential value.
-
withApnsCredential
public NotificationHubProperties withApnsCredential(ApnsCredential apnsCredential)
Set the apnsCredential property: The ApnsCredential of the created NotificationHub.- Parameters:
apnsCredential
- the apnsCredential value to set.- Returns:
- the NotificationHubProperties object itself.
-
wnsCredential
public WnsCredential wnsCredential()
Get the wnsCredential property: The WnsCredential of the created NotificationHub.- Returns:
- the wnsCredential value.
-
withWnsCredential
public NotificationHubProperties withWnsCredential(WnsCredential wnsCredential)
Set the wnsCredential property: The WnsCredential of the created NotificationHub.- Parameters:
wnsCredential
- the wnsCredential value to set.- Returns:
- the NotificationHubProperties object itself.
-
gcmCredential
public GcmCredential gcmCredential()
Get the gcmCredential property: The GcmCredential of the created NotificationHub.- Returns:
- the gcmCredential value.
-
withGcmCredential
public NotificationHubProperties withGcmCredential(GcmCredential gcmCredential)
Set the gcmCredential property: The GcmCredential of the created NotificationHub.- Parameters:
gcmCredential
- the gcmCredential value to set.- Returns:
- the NotificationHubProperties object itself.
-
mpnsCredential
public MpnsCredential mpnsCredential()
Get the mpnsCredential property: The MpnsCredential of the created NotificationHub.- Returns:
- the mpnsCredential value.
-
withMpnsCredential
public NotificationHubProperties withMpnsCredential(MpnsCredential mpnsCredential)
Set the mpnsCredential property: The MpnsCredential of the created NotificationHub.- Parameters:
mpnsCredential
- the mpnsCredential value to set.- Returns:
- the NotificationHubProperties object itself.
-
admCredential
public AdmCredential admCredential()
Get the admCredential property: The AdmCredential of the created NotificationHub.- Returns:
- the admCredential value.
-
withAdmCredential
public NotificationHubProperties withAdmCredential(AdmCredential admCredential)
Set the admCredential property: The AdmCredential of the created NotificationHub.- Parameters:
admCredential
- the admCredential value to set.- Returns:
- the NotificationHubProperties object itself.
-
baiduCredential
public BaiduCredential baiduCredential()
Get the baiduCredential property: The BaiduCredential of the created NotificationHub.- Returns:
- the baiduCredential value.
-
withBaiduCredential
public NotificationHubProperties withBaiduCredential(BaiduCredential baiduCredential)
Set the baiduCredential property: The BaiduCredential of the created NotificationHub.- Parameters:
baiduCredential
- the baiduCredential value to set.- Returns:
- the NotificationHubProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-