Class CheckAvailabilityResultInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.notificationhubs.fluent.models.CheckAvailabilityResultInner
-
public final class CheckAvailabilityResultInner extends com.azure.core.management.Resource
Description of a CheckAvailability resource.
-
-
Constructor Summary
Constructors Constructor Description CheckAvailabilityResultInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isAvailiable()
Get the isAvailiable property: True if the name is available and can be used to create new Namespace/NotificationHub.Sku
sku()
Get the sku property: The sku of the created namespace.void
validate()
Validates the instance.CheckAvailabilityResultInner
withIsAvailiable(Boolean isAvailiable)
Set the isAvailiable property: True if the name is available and can be used to create new Namespace/NotificationHub.CheckAvailabilityResultInner
withLocation(String location)
CheckAvailabilityResultInner
withSku(Sku sku)
Set the sku property: The sku of the created namespace.CheckAvailabilityResultInner
withTags(Map<String,String> tags)
-
-
-
Method Detail
-
isAvailiable
public Boolean isAvailiable()
Get the isAvailiable property: True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false.- Returns:
- the isAvailiable value.
-
withIsAvailiable
public CheckAvailabilityResultInner withIsAvailiable(Boolean isAvailiable)
Set the isAvailiable property: True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false.- Parameters:
isAvailiable
- the isAvailiable value to set.- Returns:
- the CheckAvailabilityResultInner object itself.
-
sku
public Sku sku()
Get the sku property: The sku of the created namespace.- Returns:
- the sku value.
-
withSku
public CheckAvailabilityResultInner withSku(Sku sku)
Set the sku property: The sku of the created namespace.- Parameters:
sku
- the sku value to set.- Returns:
- the CheckAvailabilityResultInner object itself.
-
withLocation
public CheckAvailabilityResultInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public CheckAvailabilityResultInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-