Class MigrationConfigPropertiesProperties

java.lang.Object
com.azure.resourcemanager.servicebus.fluent.models.MigrationConfigPropertiesProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrationConfigPropertiesProperties>

public final class MigrationConfigPropertiesProperties extends Object implements com.azure.json.JsonSerializable<MigrationConfigPropertiesProperties>
Properties required to the Create Migration Configuration.
  • Constructor Details

    • MigrationConfigPropertiesProperties

      public MigrationConfigPropertiesProperties()
      Creates an instance of MigrationConfigPropertiesProperties class.
  • Method Details

    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Provisioning state of Migration Configuration.
      Returns:
      the provisioningState value.
    • pendingReplicationOperationsCount

      public Long pendingReplicationOperationsCount()
      Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
      Returns:
      the pendingReplicationOperationsCount value.
    • targetNamespace

      public String targetNamespace()
      Get the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for migration.
      Returns:
      the targetNamespace value.
    • withTargetNamespace

      public MigrationConfigPropertiesProperties withTargetNamespace(String targetNamespace)
      Set the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for migration.
      Parameters:
      targetNamespace - the targetNamespace value to set.
      Returns:
      the MigrationConfigPropertiesProperties object itself.
    • postMigrationName

      public String postMigrationName()
      Get the postMigrationName property: Name to access Standard Namespace after migration.
      Returns:
      the postMigrationName value.
    • withPostMigrationName

      public MigrationConfigPropertiesProperties withPostMigrationName(String postMigrationName)
      Set the postMigrationName property: Name to access Standard Namespace after migration.
      Parameters:
      postMigrationName - the postMigrationName value to set.
      Returns:
      the MigrationConfigPropertiesProperties object itself.
    • migrationState

      public String migrationState()
      Get the migrationState property: State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating, Syncing, Active.
      Returns:
      the migrationState value.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MigrationConfigPropertiesProperties>
      Throws:
      IOException
    • fromJson

      public static MigrationConfigPropertiesProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MigrationConfigPropertiesProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MigrationConfigPropertiesProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the MigrationConfigPropertiesProperties.