Class NamespaceProperties


  • public final class NamespaceProperties
    extends Object
    Namespace properties.
    • Constructor Detail

      • NamespaceProperties

        public NamespaceProperties()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the namespace.
        Returns:
        the name value.
      • withName

        public NamespaceProperties withName​(String name)
        Set the name property: The name of the namespace.
        Parameters:
        name - the name value to set.
        Returns:
        the NamespaceProperties object itself.
      • provisioningState

        public String provisioningState()
        Get the provisioningState property: Provisioning state of the Namespace.
        Returns:
        the provisioningState value.
      • withProvisioningState

        public NamespaceProperties withProvisioningState​(String provisioningState)
        Set the provisioningState property: Provisioning state of the Namespace.
        Parameters:
        provisioningState - the provisioningState value to set.
        Returns:
        the NamespaceProperties 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 NamespaceProperties 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 NamespaceProperties 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 NamespaceProperties 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 NamespaceProperties object itself.
      • createdAt

        public OffsetDateTime createdAt()
        Get the createdAt property: The time the namespace was created.
        Returns:
        the createdAt value.
      • withCreatedAt

        public NamespaceProperties withCreatedAt​(OffsetDateTime createdAt)
        Set the createdAt property: The time the namespace was created.
        Parameters:
        createdAt - the createdAt value to set.
        Returns:
        the NamespaceProperties object itself.
      • updatedAt

        public OffsetDateTime updatedAt()
        Get the updatedAt property: The time the namespace was updated.
        Returns:
        the updatedAt value.
      • withUpdatedAt

        public NamespaceProperties withUpdatedAt​(OffsetDateTime updatedAt)
        Set the updatedAt property: The time the namespace was updated.
        Parameters:
        updatedAt - the updatedAt value to set.
        Returns:
        the NamespaceProperties object itself.
      • serviceBusEndpoint

        public String serviceBusEndpoint()
        Get the serviceBusEndpoint property: Endpoint you can use to perform NotificationHub operations.
        Returns:
        the serviceBusEndpoint value.
      • withServiceBusEndpoint

        public NamespaceProperties withServiceBusEndpoint​(String serviceBusEndpoint)
        Set the serviceBusEndpoint property: Endpoint you can use to perform NotificationHub operations.
        Parameters:
        serviceBusEndpoint - the serviceBusEndpoint value to set.
        Returns:
        the NamespaceProperties 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 NamespaceProperties 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 NamespaceProperties object itself.
      • scaleUnit

        public String scaleUnit()
        Get the scaleUnit property: ScaleUnit where the namespace gets created.
        Returns:
        the scaleUnit value.
      • withScaleUnit

        public NamespaceProperties withScaleUnit​(String scaleUnit)
        Set the scaleUnit property: ScaleUnit where the namespace gets created.
        Parameters:
        scaleUnit - the scaleUnit value to set.
        Returns:
        the NamespaceProperties object itself.
      • enabled

        public Boolean enabled()
        Get the enabled property: Whether or not the namespace is currently enabled.
        Returns:
        the enabled value.
      • withEnabled

        public NamespaceProperties withEnabled​(Boolean enabled)
        Set the enabled property: Whether or not the namespace is currently enabled.
        Parameters:
        enabled - the enabled value to set.
        Returns:
        the NamespaceProperties 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 NamespaceProperties 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 NamespaceProperties object itself.
      • dataCenter

        public String dataCenter()
        Get the dataCenter property: Data center for the namespace.
        Returns:
        the dataCenter value.
      • withDataCenter

        public NamespaceProperties withDataCenter​(String dataCenter)
        Set the dataCenter property: Data center for the namespace.
        Parameters:
        dataCenter - the dataCenter value to set.
        Returns:
        the NamespaceProperties object itself.
      • namespaceType

        public NamespaceType namespaceType()
        Get the namespaceType property: The namespace type.
        Returns:
        the namespaceType value.
      • withNamespaceType

        public NamespaceProperties withNamespaceType​(NamespaceType namespaceType)
        Set the namespaceType property: The namespace type.
        Parameters:
        namespaceType - the namespaceType value to set.
        Returns:
        the NamespaceProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.