Class NamespaceResourceInner


  • public final class NamespaceResourceInner
    extends com.azure.core.management.Resource
    Description of a Namespace resource.
    • Constructor Detail

      • NamespaceResourceInner

        public NamespaceResourceInner()
    • 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 class com.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.