Class DeploymentUpgrade.Builder
- java.lang.Object
-
- com.oracle.bmc.goldengate.model.DeploymentUpgrade.Builder
-
- Enclosing class:
- DeploymentUpgrade
public static class DeploymentUpgrade.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentUpgrade
build()
DeploymentUpgrade.Builder
compartmentId(String compartmentId)
The OCID of the compartment being referenced.DeploymentUpgrade.Builder
copy(DeploymentUpgrade model)
DeploymentUpgrade.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Tags defined for this resource.DeploymentUpgrade.Builder
deploymentId(String deploymentId)
The OCID of the deployment being referenced.DeploymentUpgrade.Builder
deploymentUpgradeType(DeploymentUpgradeType deploymentUpgradeType)
The type of the deployment upgrade: MANUAL or AUTOMATICDeploymentUpgrade.Builder
description(String description)
Metadata about this specific object.DeploymentUpgrade.Builder
displayName(String displayName)
An object’s Display Name.DeploymentUpgrade.Builder
freeformTags(Map<String,String> freeformTags)
A simple key-value pair that is applied without any predefined name, type, or scope.DeploymentUpgrade.Builder
id(String id)
The OCID of the deployment upgrade being referenced.DeploymentUpgrade.Builder
isCancelAllowed(Boolean isCancelAllowed)
Indicates if cancel is allowed.DeploymentUpgrade.Builder
isRescheduleAllowed(Boolean isRescheduleAllowed)
Indicates if reschedule is allowed.DeploymentUpgrade.Builder
isRollbackAllowed(Boolean isRollbackAllowed)
Indicates if rollback is allowed.DeploymentUpgrade.Builder
isSecurityFix(Boolean isSecurityFix)
Indicates if OGG release contains security fix.DeploymentUpgrade.Builder
isSnoozed(Boolean isSnoozed)
Indicates if upgrade notifications are snoozed or not.DeploymentUpgrade.Builder
lifecycleDetails(String lifecycleDetails)
Describes the object’s current state in detail.DeploymentUpgrade.Builder
lifecycleState(LifecycleState lifecycleState)
Possible lifecycle states.DeploymentUpgrade.Builder
lifecycleSubState(LifecycleSubState lifecycleSubState)
Possible GGS lifecycle sub-states.DeploymentUpgrade.Builder
oggVersion(String oggVersion)
Version of OGGDeploymentUpgrade.Builder
previousOggVersion(String previousOggVersion)
Version of OGGDeploymentUpgrade.Builder
releaseType(ReleaseType releaseType)
The type of release.DeploymentUpgrade.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
The system tags associated with this resource, if any.DeploymentUpgrade.Builder
timeCreated(Date timeCreated)
The time the resource was created.DeploymentUpgrade.Builder
timeFinished(Date timeFinished)
The date and time the request was finished.DeploymentUpgrade.Builder
timeOggVersionSupportedUntil(Date timeOggVersionSupportedUntil)
The time until OGG version is supported.DeploymentUpgrade.Builder
timeReleased(Date timeReleased)
The time the resource was released.DeploymentUpgrade.Builder
timeSchedule(Date timeSchedule)
The time of upgrade schedule.DeploymentUpgrade.Builder
timeScheduleMax(Date timeScheduleMax)
Indicates the latest time until the deployment upgrade could be rescheduled.DeploymentUpgrade.Builder
timeSnoozedUntil(Date timeSnoozedUntil)
The time the upgrade notifications are snoozed until.DeploymentUpgrade.Builder
timeStarted(Date timeStarted)
The date and time the request was started.DeploymentUpgrade.Builder
timeUpdated(Date timeUpdated)
The time the resource was last updated.
-
-
-
Method Detail
-
id
public DeploymentUpgrade.Builder id(String id)
The OCID of the deployment upgrade being referenced.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public DeploymentUpgrade.Builder displayName(String displayName)
An object’s Display Name.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public DeploymentUpgrade.Builder description(String description)
Metadata about this specific object.- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public DeploymentUpgrade.Builder compartmentId(String compartmentId)
The OCID of the compartment being referenced.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
deploymentId
public DeploymentUpgrade.Builder deploymentId(String deploymentId)
The OCID of the deployment being referenced.- Parameters:
deploymentId
- the value to set- Returns:
- this builder
-
deploymentUpgradeType
public DeploymentUpgrade.Builder deploymentUpgradeType(DeploymentUpgradeType deploymentUpgradeType)
The type of the deployment upgrade: MANUAL or AUTOMATIC- Parameters:
deploymentUpgradeType
- the value to set- Returns:
- this builder
-
timeStarted
public DeploymentUpgrade.Builder timeStarted(Date timeStarted)
The date and time the request was started.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeFinished
public DeploymentUpgrade.Builder timeFinished(Date timeFinished)
The date and time the request was finished.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeFinished
- the value to set- Returns:
- this builder
-
oggVersion
public DeploymentUpgrade.Builder oggVersion(String oggVersion)
Version of OGG- Parameters:
oggVersion
- the value to set- Returns:
- this builder
-
timeCreated
public DeploymentUpgrade.Builder timeCreated(Date timeCreated)
The time the resource was created.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public DeploymentUpgrade.Builder timeUpdated(Date timeUpdated)
The time the resource was last updated.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public DeploymentUpgrade.Builder lifecycleState(LifecycleState lifecycleState)
Possible lifecycle states.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleSubState
public DeploymentUpgrade.Builder lifecycleSubState(LifecycleSubState lifecycleSubState)
Possible GGS lifecycle sub-states.- Parameters:
lifecycleSubState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public DeploymentUpgrade.Builder lifecycleDetails(String lifecycleDetails)
Describes the object’s current state in detail.For example, it can be used to provide actionable information for a resource in a Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public DeploymentUpgrade.Builder freeformTags(Map<String,String> freeformTags)
A simple key-value pair that is applied without any predefined name, type, or scope.Exists for cross-compatibility only.
Example: {"bar-key": "value"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public DeploymentUpgrade.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Tags defined 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 DeploymentUpgrade.Builder systemTags(Map<String,Map<String,Object>> systemTags)
The system tags associated with this resource, if any.The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags.
Example: {orcl-cloud: {free-tier-retain: true}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
previousOggVersion
public DeploymentUpgrade.Builder previousOggVersion(String previousOggVersion)
Version of OGG- Parameters:
previousOggVersion
- the value to set- Returns:
- this builder
-
timeSchedule
public DeploymentUpgrade.Builder timeSchedule(Date timeSchedule)
The time of upgrade schedule.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeSchedule
- the value to set- Returns:
- this builder
-
isSnoozed
public DeploymentUpgrade.Builder isSnoozed(Boolean isSnoozed)
Indicates if upgrade notifications are snoozed or not.- Parameters:
isSnoozed
- the value to set- Returns:
- this builder
-
timeSnoozedUntil
public DeploymentUpgrade.Builder timeSnoozedUntil(Date timeSnoozedUntil)
The time the upgrade notifications are snoozed until.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeSnoozedUntil
- the value to set- Returns:
- this builder
-
timeReleased
public DeploymentUpgrade.Builder timeReleased(Date timeReleased)
The time the resource was released.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeReleased
- the value to set- Returns:
- this builder
-
releaseType
public DeploymentUpgrade.Builder releaseType(ReleaseType releaseType)
The type of release.- Parameters:
releaseType
- the value to set- Returns:
- this builder
-
isSecurityFix
public DeploymentUpgrade.Builder isSecurityFix(Boolean isSecurityFix)
Indicates if OGG release contains security fix.- Parameters:
isSecurityFix
- the value to set- Returns:
- this builder
-
isRollbackAllowed
public DeploymentUpgrade.Builder isRollbackAllowed(Boolean isRollbackAllowed)
Indicates if rollback is allowed.In practice only the last upgrade can be rolled back. - Manual upgrade is allowed to rollback only until the old version isn’t deprecated yet. - Automatic upgrade by default is not allowed, unless a serious issue does not justify.
- Parameters:
isRollbackAllowed
- the value to set- Returns:
- this builder
-
timeOggVersionSupportedUntil
public DeploymentUpgrade.Builder timeOggVersionSupportedUntil(Date timeOggVersionSupportedUntil)
The time until OGG version is supported.After this date has passed OGG version will not be available anymore. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeOggVersionSupportedUntil
- the value to set- Returns:
- this builder
-
isCancelAllowed
public DeploymentUpgrade.Builder isCancelAllowed(Boolean isCancelAllowed)
Indicates if cancel is allowed.Scheduled upgrade can be cancelled only if target version is not forced by service, otherwise only reschedule allowed.
- Parameters:
isCancelAllowed
- the value to set- Returns:
- this builder
-
isRescheduleAllowed
public DeploymentUpgrade.Builder isRescheduleAllowed(Boolean isRescheduleAllowed)
Indicates if reschedule is allowed.Upgrade can be rescheduled postponed until the end of the service defined auto-upgrade period.
- Parameters:
isRescheduleAllowed
- the value to set- Returns:
- this builder
-
timeScheduleMax
public DeploymentUpgrade.Builder timeScheduleMax(Date timeScheduleMax)
Indicates the latest time until the deployment upgrade could be rescheduled.The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- Parameters:
timeScheduleMax
- the value to set- Returns:
- this builder
-
build
public DeploymentUpgrade build()
-
copy
public DeploymentUpgrade.Builder copy(DeploymentUpgrade model)
-
-