@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MaintenanceTrack extends Object implements Serializable, Cloneable
Defines a maintenance track that determines which Amazon Redshift version to apply during a maintenance window. If
the value for MaintenanceTrack
is current
, the cluster is updated to the most recently
certified maintenance release. If the value is trailing
, the cluster is updated to the previously
certified maintenance release.
Constructor and Description |
---|
MaintenanceTrack() |
Modifier and Type | Method and Description |
---|---|
MaintenanceTrack |
clone() |
boolean |
equals(Object obj) |
String |
getDatabaseVersion()
The version number for the cluster release.
|
String |
getMaintenanceTrackName()
The name of the maintenance track.
|
List<UpdateTarget> |
getUpdateTargets()
An array of UpdateTarget objects to update with the maintenance track.
|
int |
hashCode() |
void |
setDatabaseVersion(String databaseVersion)
The version number for the cluster release.
|
void |
setMaintenanceTrackName(String maintenanceTrackName)
The name of the maintenance track.
|
void |
setUpdateTargets(Collection<UpdateTarget> updateTargets)
An array of UpdateTarget objects to update with the maintenance track.
|
String |
toString()
Returns a string representation of this object.
|
MaintenanceTrack |
withDatabaseVersion(String databaseVersion)
The version number for the cluster release.
|
MaintenanceTrack |
withMaintenanceTrackName(String maintenanceTrackName)
The name of the maintenance track.
|
MaintenanceTrack |
withUpdateTargets(Collection<UpdateTarget> updateTargets)
An array of UpdateTarget objects to update with the maintenance track.
|
MaintenanceTrack |
withUpdateTargets(UpdateTarget... updateTargets)
An array of UpdateTarget objects to update with the maintenance track.
|
public void setMaintenanceTrackName(String maintenanceTrackName)
The name of the maintenance track. Possible values are current
and trailing
.
maintenanceTrackName
- The name of the maintenance track. Possible values are current
and trailing
.public String getMaintenanceTrackName()
The name of the maintenance track. Possible values are current
and trailing
.
current
and trailing
.public MaintenanceTrack withMaintenanceTrackName(String maintenanceTrackName)
The name of the maintenance track. Possible values are current
and trailing
.
maintenanceTrackName
- The name of the maintenance track. Possible values are current
and trailing
.public void setDatabaseVersion(String databaseVersion)
The version number for the cluster release.
databaseVersion
- The version number for the cluster release.public String getDatabaseVersion()
The version number for the cluster release.
public MaintenanceTrack withDatabaseVersion(String databaseVersion)
The version number for the cluster release.
databaseVersion
- The version number for the cluster release.public List<UpdateTarget> getUpdateTargets()
An array of UpdateTarget objects to update with the maintenance track.
public void setUpdateTargets(Collection<UpdateTarget> updateTargets)
An array of UpdateTarget objects to update with the maintenance track.
updateTargets
- An array of UpdateTarget objects to update with the maintenance track.public MaintenanceTrack withUpdateTargets(UpdateTarget... updateTargets)
An array of UpdateTarget objects to update with the maintenance track.
NOTE: This method appends the values to the existing list (if any). Use
setUpdateTargets(java.util.Collection)
or withUpdateTargets(java.util.Collection)
if you want
to override the existing values.
updateTargets
- An array of UpdateTarget objects to update with the maintenance track.public MaintenanceTrack withUpdateTargets(Collection<UpdateTarget> updateTargets)
An array of UpdateTarget objects to update with the maintenance track.
updateTargets
- An array of UpdateTarget objects to update with the maintenance track.public String toString()
toString
in class Object
Object.toString()
public MaintenanceTrack clone()