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