ProjectProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.fluent.models.ProjectProperties

Implements

public final class ProjectProperties
implements JsonSerializable<ProjectProperties>

Project-specific properties.

Constructor Summary

Constructor Description
ProjectProperties()

Creates an instance of ProjectProperties class.

Method Summary

Modifier and Type Method and Description
AzureActiveDirectoryApp azureAuthenticationInfo()

Get the azureAuthenticationInfo property: Field that defines the Azure active directory application info, used to connect to the target Azure resource.

OffsetDateTime creationTime()

Get the creationTime property: UTC Date and time when project was created.

List<DatabaseInfo> databasesInfo()

Get the databasesInfo property: List of DatabaseInfo.

static ProjectProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectProperties from the JsonReader.

ProjectProvisioningState provisioningState()

Get the provisioningState property: The project's provisioning state.

ConnectionInfo sourceConnectionInfo()

Get the sourceConnectionInfo property: Information for connecting to source.

ProjectSourcePlatform sourcePlatform()

Get the sourcePlatform property: Source platform for the project.

ConnectionInfo targetConnectionInfo()

Get the targetConnectionInfo property: Information for connecting to target.

ProjectTargetPlatform targetPlatform()

Get the targetPlatform property: Target platform for the project.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProjectProperties withAzureAuthenticationInfo(AzureActiveDirectoryApp azureAuthenticationInfo)

Set the azureAuthenticationInfo property: Field that defines the Azure active directory application info, used to connect to the target Azure resource.

ProjectProperties withDatabasesInfo(List<DatabaseInfo> databasesInfo)

Set the databasesInfo property: List of DatabaseInfo.

ProjectProperties withSourceConnectionInfo(ConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source.

ProjectProperties withSourcePlatform(ProjectSourcePlatform sourcePlatform)

Set the sourcePlatform property: Source platform for the project.

ProjectProperties withTargetConnectionInfo(ConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

ProjectProperties withTargetPlatform(ProjectTargetPlatform targetPlatform)

Set the targetPlatform property: Target platform for the project.

Methods inherited from java.lang.Object

Constructor Details

ProjectProperties

public ProjectProperties()

Creates an instance of ProjectProperties class.

Method Details

azureAuthenticationInfo

public AzureActiveDirectoryApp azureAuthenticationInfo()

Get the azureAuthenticationInfo property: Field that defines the Azure active directory application info, used to connect to the target Azure resource.

Returns:

the azureAuthenticationInfo value.

creationTime

public OffsetDateTime creationTime()

Get the creationTime property: UTC Date and time when project was created.

Returns:

the creationTime value.

databasesInfo

public List<DatabaseInfo> databasesInfo()

Get the databasesInfo property: List of DatabaseInfo.

Returns:

the databasesInfo value.

fromJson

public static ProjectProperties fromJson(JsonReader jsonReader)

Reads an instance of ProjectProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProjectProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

provisioningState

public ProjectProvisioningState provisioningState()

Get the provisioningState property: The project's provisioning state.

Returns:

the provisioningState value.

sourceConnectionInfo

public ConnectionInfo sourceConnectionInfo()

Get the sourceConnectionInfo property: Information for connecting to source.

Returns:

the sourceConnectionInfo value.

sourcePlatform

public ProjectSourcePlatform sourcePlatform()

Get the sourcePlatform property: Source platform for the project.

Returns:

the sourcePlatform value.

targetConnectionInfo

public ConnectionInfo targetConnectionInfo()

Get the targetConnectionInfo property: Information for connecting to target.

Returns:

the targetConnectionInfo value.

targetPlatform

public ProjectTargetPlatform targetPlatform()

Get the targetPlatform property: Target platform for the project.

Returns:

the targetPlatform value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureAuthenticationInfo

public ProjectProperties withAzureAuthenticationInfo(AzureActiveDirectoryApp azureAuthenticationInfo)

Set the azureAuthenticationInfo property: Field that defines the Azure active directory application info, used to connect to the target Azure resource.

Parameters:

azureAuthenticationInfo - the azureAuthenticationInfo value to set.

Returns:

the ProjectProperties object itself.

withDatabasesInfo

public ProjectProperties withDatabasesInfo(List<DatabaseInfo> databasesInfo)

Set the databasesInfo property: List of DatabaseInfo.

Parameters:

databasesInfo - the databasesInfo value to set.

Returns:

the ProjectProperties object itself.

withSourceConnectionInfo

public ProjectProperties withSourceConnectionInfo(ConnectionInfo sourceConnectionInfo)

Set the sourceConnectionInfo property: Information for connecting to source.

Parameters:

sourceConnectionInfo - the sourceConnectionInfo value to set.

Returns:

the ProjectProperties object itself.

withSourcePlatform

public ProjectProperties withSourcePlatform(ProjectSourcePlatform sourcePlatform)

Set the sourcePlatform property: Source platform for the project.

Parameters:

sourcePlatform - the sourcePlatform value to set.

Returns:

the ProjectProperties object itself.

withTargetConnectionInfo

public ProjectProperties withTargetConnectionInfo(ConnectionInfo targetConnectionInfo)

Set the targetConnectionInfo property: Information for connecting to target.

Parameters:

targetConnectionInfo - the targetConnectionInfo value to set.

Returns:

the ProjectProperties object itself.

withTargetPlatform

public ProjectProperties withTargetPlatform(ProjectTargetPlatform targetPlatform)

Set the targetPlatform property: Target platform for the project.

Parameters:

targetPlatform - the targetPlatform value to set.

Returns:

the ProjectProperties object itself.

Applies to