Class CheckAvailabilityParameters
- java.lang.Object
-
- com.azure.resourcemanager.notificationhubs.models.CheckAvailabilityParameters
-
public final class CheckAvailabilityParameters extends Object
Parameters supplied to the Check Name Availability for Namespace and NotificationHubs.
-
-
Constructor Summary
Constructors Constructor Description CheckAvailabilityParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
id()
Get the id property: Resource Id.Boolean
isAvailiable()
Get the isAvailiable property: True if the name is available and can be used to create new Namespace/NotificationHub.String
location()
Get the location property: Resource location.String
name()
Get the name property: Resource name.Sku
sku()
Get the sku property: The sku of the created namespace.Map<String,String>
tags()
Get the tags property: Resource tags.String
type()
Get the type property: Resource type.void
validate()
Validates the instance.CheckAvailabilityParameters
withIsAvailiable(Boolean isAvailiable)
Set the isAvailiable property: True if the name is available and can be used to create new Namespace/NotificationHub.CheckAvailabilityParameters
withLocation(String location)
Set the location property: Resource location.CheckAvailabilityParameters
withName(String name)
Set the name property: Resource name.CheckAvailabilityParameters
withSku(Sku sku)
Set the sku property: The sku of the created namespace.CheckAvailabilityParameters
withTags(Map<String,String> tags)
Set the tags property: Resource tags.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Resource Id.- Returns:
- the id value.
-
name
public String name()
Get the name property: Resource name.- Returns:
- the name value.
-
withName
public CheckAvailabilityParameters withName(String name)
Set the name property: Resource name.- Parameters:
name
- the name value to set.- Returns:
- the CheckAvailabilityParameters object itself.
-
type
public String type()
Get the type property: Resource type.- Returns:
- the type value.
-
location
public String location()
Get the location property: Resource location.- Returns:
- the location value.
-
withLocation
public CheckAvailabilityParameters withLocation(String location)
Set the location property: Resource location.- Parameters:
location
- the location value to set.- Returns:
- the CheckAvailabilityParameters object itself.
-
tags
public Map<String,String> tags()
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
public CheckAvailabilityParameters withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the CheckAvailabilityParameters object itself.
-
sku
public Sku sku()
Get the sku property: The sku of the created namespace.- Returns:
- the sku value.
-
withSku
public CheckAvailabilityParameters withSku(Sku sku)
Set the sku property: The sku of the created namespace.- Parameters:
sku
- the sku value to set.- Returns:
- the CheckAvailabilityParameters object itself.
-
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 CheckAvailabilityParameters 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 CheckAvailabilityParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-