com.azure.resourcemanager.servicebus.fluent.models.MigrationConfigPropertiesProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-servicebus Show documentation
Show all versions of azure-resourcemanager-servicebus Show documentation
This package contains Microsoft Azure ServiceBus Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.servicebus.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties required to the Create Migration Configuration. */
@Fluent
public final class MigrationConfigPropertiesProperties {
/*
* Provisioning state of Migration Configuration
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/*
* Number of entities pending to be replicated.
*/
@JsonProperty(value = "pendingReplicationOperationsCount", access = JsonProperty.Access.WRITE_ONLY)
private Long pendingReplicationOperationsCount;
/*
* Existing premium Namespace ARM Id name which has no entities, will be used for migration
*/
@JsonProperty(value = "targetNamespace", required = true)
private String targetNamespace;
/*
* Name to access Standard Namespace after migration
*/
@JsonProperty(value = "postMigrationName", required = true)
private String postMigrationName;
/*
* State in which Standard to Premium Migration is, possible values : Unknown, Reverting, Completing, Initiating,
* Syncing, Active
*/
@JsonProperty(value = "migrationState", access = JsonProperty.Access.WRITE_ONLY)
private String migrationState;
/**
* Get the provisioningState property: Provisioning state of Migration Configuration.
*
* @return the provisioningState value.
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* Get the pendingReplicationOperationsCount property: Number of entities pending to be replicated.
*
* @return the pendingReplicationOperationsCount value.
*/
public Long pendingReplicationOperationsCount() {
return this.pendingReplicationOperationsCount;
}
/**
* Get the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for
* migration.
*
* @return the targetNamespace value.
*/
public String targetNamespace() {
return this.targetNamespace;
}
/**
* Set the targetNamespace property: Existing premium Namespace ARM Id name which has no entities, will be used for
* migration.
*
* @param targetNamespace the targetNamespace value to set.
* @return the MigrationConfigPropertiesProperties object itself.
*/
public MigrationConfigPropertiesProperties withTargetNamespace(String targetNamespace) {
this.targetNamespace = targetNamespace;
return this;
}
/**
* Get the postMigrationName property: Name to access Standard Namespace after migration.
*
* @return the postMigrationName value.
*/
public String postMigrationName() {
return this.postMigrationName;
}
/**
* Set the postMigrationName property: Name to access Standard Namespace after migration.
*
* @param postMigrationName the postMigrationName value to set.
* @return the MigrationConfigPropertiesProperties object itself.
*/
public MigrationConfigPropertiesProperties withPostMigrationName(String postMigrationName) {
this.postMigrationName = postMigrationName;
return this;
}
/**
* Get the migrationState property: State in which Standard to Premium Migration is, possible values : Unknown,
* Reverting, Completing, Initiating, Syncing, Active.
*
* @return the migrationState value.
*/
public String migrationState() {
return this.migrationState;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (targetNamespace() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property targetNamespace in model MigrationConfigPropertiesProperties"));
}
if (postMigrationName() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property postMigrationName in model MigrationConfigPropertiesProperties"));
}
}
private static final ClientLogger LOGGER = new ClientLogger(MigrationConfigPropertiesProperties.class);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy