Class Migration.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudmigrations.model.Migration.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Migration
build()
Migration.Builder
compartmentId(String compartmentId)
Compartment IdentifierMigration.Builder
copy(Migration model)
Migration.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Migration.Builder
displayName(String displayName)
Migration Identifier that can be renamedMigration.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Migration.Builder
id(String id)
Unique identifier that is immutable on creationMigration.Builder
isCompleted(Boolean isCompleted)
Indicates whether migration is marked as completed.Migration.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.Migration.Builder
lifecycleState(Migration.LifecycleState lifecycleState)
The current state of migration.Migration.Builder
replicationScheduleId(String replicationScheduleId)
Replication schedule identifierMigration.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.Migration.Builder
timeCreated(Date timeCreated)
The time when the migration project was created.Migration.Builder
timeUpdated(Date timeUpdated)
The time when the migration project was updated.
-
-
-
Method Detail
-
id
public Migration.Builder id(String id)
Unique identifier that is immutable on creation- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public Migration.Builder displayName(String displayName)
Migration Identifier that can be renamed- Parameters:
displayName
- the value to set- Returns:
- this builder
-
compartmentId
public Migration.Builder compartmentId(String compartmentId)
Compartment Identifier- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
lifecycleState
public Migration.Builder lifecycleState(Migration.LifecycleState lifecycleState)
The current state of migration.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Migration.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, it can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
timeCreated
public Migration.Builder timeCreated(Date timeCreated)
The time when the migration project was created.An RFC3339 formatted datetime string
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Migration.Builder timeUpdated(Date timeUpdated)
The time when the migration project was updated.An RFC3339 formatted datetime string
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
replicationScheduleId
public Migration.Builder replicationScheduleId(String replicationScheduleId)
Replication schedule identifier- Parameters:
replicationScheduleId
- the value to set- Returns:
- this builder
-
isCompleted
public Migration.Builder isCompleted(Boolean isCompleted)
Indicates whether migration is marked as completed.- Parameters:
isCompleted
- the value to set- Returns:
- this builder
-
freeformTags
public Migration.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.It exists only for cross-compatibility. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public Migration.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public Migration.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public Migration build()
-
copy
public Migration.Builder copy(Migration model)
-
-