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