Class NamespaceCreateOrUpdateParameters


  • public final class NamespaceCreateOrUpdateParameters
    extends com.azure.core.management.Resource
    Parameters supplied to the CreateOrUpdate Namespace operation.
    • Constructor Detail

      • NamespaceCreateOrUpdateParameters

        public NamespaceCreateOrUpdateParameters()
    • Method Detail

      • sku

        public Sku sku()
        Get the sku property: The sku of the created namespace.
        Returns:
        the sku value.
      • withSku

        public NamespaceCreateOrUpdateParameters withSku​(Sku sku)
        Set the sku property: The sku of the created namespace.
        Parameters:
        sku - the sku value to set.
        Returns:
        the NamespaceCreateOrUpdateParameters object itself.
      • namePropertiesName

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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