Class NamespaceResourceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.notificationhubs.fluent.models.NamespaceResourceInner
-
public final class NamespaceResourceInner extends com.azure.core.management.Resource
Description of a Namespace resource.
-
-
Constructor Summary
Constructors Constructor Description NamespaceResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
createdAt()
Get the createdAt property: The time the namespace was created.Boolean
critical()
Get the critical property: Whether or not the namespace is set as Critical.String
dataCenter()
Get the dataCenter property: Data center for the namespace.Boolean
enabled()
Get the enabled property: Whether or not the namespace is currently enabled.String
metricId()
Get the metricId property: Identifier for Azure Insights metrics.String
namePropertiesName()
Get the name property: The name of the namespace.NamespaceType
namespaceType()
Get the namespaceType property: The namespace type.String
provisioningState()
Get the provisioningState property: Provisioning state of the Namespace.String
region()
Get the region property: Specifies the targeted region in which the namespace should be created.String
scaleUnit()
Get the scaleUnit property: ScaleUnit where the namespace gets created.String
serviceBusEndpoint()
Get the serviceBusEndpoint property: Endpoint you can use to perform NotificationHub operations.Sku
sku()
Get the sku property: The sku of the created namespace.String
status()
Get the status property: Status of the namespace.String
subscriptionId()
Get the subscriptionId property: The Id of the Azure subscription associated with the namespace.OffsetDateTime
updatedAt()
Get the updatedAt property: The time the namespace was updated.void
validate()
Validates the instance.NamespaceResourceInner
withCreatedAt(OffsetDateTime createdAt)
Set the createdAt property: The time the namespace was created.NamespaceResourceInner
withCritical(Boolean critical)
Set the critical property: Whether or not the namespace is set as Critical.NamespaceResourceInner
withDataCenter(String dataCenter)
Set the dataCenter property: Data center for the namespace.NamespaceResourceInner
withEnabled(Boolean enabled)
Set the enabled property: Whether or not the namespace is currently enabled.NamespaceResourceInner
withLocation(String location)
NamespaceResourceInner
withNamePropertiesName(String name)
Set the name property: The name of the namespace.NamespaceResourceInner
withNamespaceType(NamespaceType namespaceType)
Set the namespaceType property: The namespace type.NamespaceResourceInner
withProvisioningState(String provisioningState)
Set the provisioningState property: Provisioning state of the Namespace.NamespaceResourceInner
withRegion(String region)
Set the region property: Specifies the targeted region in which the namespace should be created.NamespaceResourceInner
withScaleUnit(String scaleUnit)
Set the scaleUnit property: ScaleUnit where the namespace gets created.NamespaceResourceInner
withServiceBusEndpoint(String serviceBusEndpoint)
Set the serviceBusEndpoint property: Endpoint you can use to perform NotificationHub operations.NamespaceResourceInner
withSku(Sku sku)
Set the sku property: The sku of the created namespace.NamespaceResourceInner
withStatus(String status)
Set the status property: Status of the namespace.NamespaceResourceInner
withSubscriptionId(String subscriptionId)
Set the subscriptionId property: The Id of the Azure subscription associated with the namespace.NamespaceResourceInner
withTags(Map<String,String> tags)
NamespaceResourceInner
withUpdatedAt(OffsetDateTime updatedAt)
Set the updatedAt property: The time the namespace was updated.
-
-
-
Method Detail
-
sku
public Sku sku()
Get the sku property: The sku of the created namespace.- Returns:
- the sku value.
-
withSku
public NamespaceResourceInner withSku(Sku sku)
Set the sku property: The sku of the created namespace.- Parameters:
sku
- the sku value to set.- Returns:
- the NamespaceResourceInner object itself.
-
withLocation
public NamespaceResourceInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public NamespaceResourceInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
namePropertiesName
public String namePropertiesName()
Get the name property: The name of the namespace.- Returns:
- the name value.
-
withNamePropertiesName
public NamespaceResourceInner withNamePropertiesName(String name)
Set the name property: The name of the namespace.- Parameters:
name
- the name value to set.- Returns:
- the NamespaceResourceInner object itself.
-
provisioningState
public String provisioningState()
Get the provisioningState property: Provisioning state of the Namespace.- Returns:
- the provisioningState value.
-
withProvisioningState
public NamespaceResourceInner withProvisioningState(String provisioningState)
Set the provisioningState property: Provisioning state of the Namespace.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the NamespaceResourceInner object itself.
-
region
public String region()
Get the region property: Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe.- Returns:
- the region value.
-
withRegion
public NamespaceResourceInner withRegion(String region)
Set the region property: Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe.- Parameters:
region
- the region value to set.- Returns:
- the NamespaceResourceInner object itself.
-
metricId
public String metricId()
Get the metricId property: Identifier for Azure Insights metrics.- Returns:
- the metricId value.
-
status
public String status()
Get the status property: Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting.- Returns:
- the status value.
-
withStatus
public NamespaceResourceInner withStatus(String status)
Set the status property: Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting.- Parameters:
status
- the status value to set.- Returns:
- the NamespaceResourceInner object itself.
-
createdAt
public OffsetDateTime createdAt()
Get the createdAt property: The time the namespace was created.- Returns:
- the createdAt value.
-
withCreatedAt
public NamespaceResourceInner withCreatedAt(OffsetDateTime createdAt)
Set the createdAt property: The time the namespace was created.- Parameters:
createdAt
- the createdAt value to set.- Returns:
- the NamespaceResourceInner object itself.
-
updatedAt
public OffsetDateTime updatedAt()
Get the updatedAt property: The time the namespace was updated.- Returns:
- the updatedAt value.
-
withUpdatedAt
public NamespaceResourceInner withUpdatedAt(OffsetDateTime updatedAt)
Set the updatedAt property: The time the namespace was updated.- Parameters:
updatedAt
- the updatedAt value to set.- Returns:
- the NamespaceResourceInner object itself.
-
serviceBusEndpoint
public String serviceBusEndpoint()
Get the serviceBusEndpoint property: Endpoint you can use to perform NotificationHub operations.- Returns:
- the serviceBusEndpoint value.
-
withServiceBusEndpoint
public NamespaceResourceInner withServiceBusEndpoint(String serviceBusEndpoint)
Set the serviceBusEndpoint property: Endpoint you can use to perform NotificationHub operations.- Parameters:
serviceBusEndpoint
- the serviceBusEndpoint value to set.- Returns:
- the NamespaceResourceInner object itself.
-
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The Id of the Azure subscription associated with the namespace.- Returns:
- the subscriptionId value.
-
withSubscriptionId
public NamespaceResourceInner withSubscriptionId(String subscriptionId)
Set the subscriptionId property: The Id of the Azure subscription associated with the namespace.- Parameters:
subscriptionId
- the subscriptionId value to set.- Returns:
- the NamespaceResourceInner object itself.
-
scaleUnit
public String scaleUnit()
Get the scaleUnit property: ScaleUnit where the namespace gets created.- Returns:
- the scaleUnit value.
-
withScaleUnit
public NamespaceResourceInner withScaleUnit(String scaleUnit)
Set the scaleUnit property: ScaleUnit where the namespace gets created.- Parameters:
scaleUnit
- the scaleUnit value to set.- Returns:
- the NamespaceResourceInner object itself.
-
enabled
public Boolean enabled()
Get the enabled property: Whether or not the namespace is currently enabled.- Returns:
- the enabled value.
-
withEnabled
public NamespaceResourceInner withEnabled(Boolean enabled)
Set the enabled property: Whether or not the namespace is currently enabled.- Parameters:
enabled
- the enabled value to set.- Returns:
- the NamespaceResourceInner object itself.
-
critical
public Boolean critical()
Get the critical property: Whether or not the namespace is set as Critical.- Returns:
- the critical value.
-
withCritical
public NamespaceResourceInner withCritical(Boolean critical)
Set the critical property: Whether or not the namespace is set as Critical.- Parameters:
critical
- the critical value to set.- Returns:
- the NamespaceResourceInner object itself.
-
dataCenter
public String dataCenter()
Get the dataCenter property: Data center for the namespace.- Returns:
- the dataCenter value.
-
withDataCenter
public NamespaceResourceInner withDataCenter(String dataCenter)
Set the dataCenter property: Data center for the namespace.- Parameters:
dataCenter
- the dataCenter value to set.- Returns:
- the NamespaceResourceInner object itself.
-
namespaceType
public NamespaceType namespaceType()
Get the namespaceType property: The namespace type.- Returns:
- the namespaceType value.
-
withNamespaceType
public NamespaceResourceInner withNamespaceType(NamespaceType namespaceType)
Set the namespaceType property: The namespace type.- Parameters:
namespaceType
- the namespaceType value to set.- Returns:
- the NamespaceResourceInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-