/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.redshift.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* 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.
*
* The name of the maintenance track. Possible values are current
and trailing
.
*
* The version number for the cluster release. *
*/ private String databaseVersion; /** ** An array of UpdateTarget objects to update with the maintenance track. *
*/ private com.amazonaws.internal.SdkInternalList
* The name of the maintenance track. Possible values are current
and trailing
.
*
current
and trailing
.
*/
public void setMaintenanceTrackName(String maintenanceTrackName) {
this.maintenanceTrackName = maintenanceTrackName;
}
/**
*
* The name of the maintenance track. Possible values are current
and trailing
.
*
current
and trailing
.
*/
public String getMaintenanceTrackName() {
return this.maintenanceTrackName;
}
/**
*
* The name of the maintenance track. Possible values are current
and trailing
.
*
current
and trailing
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MaintenanceTrack withMaintenanceTrackName(String maintenanceTrackName) {
setMaintenanceTrackName(maintenanceTrackName);
return this;
}
/**
* * The version number for the cluster release. *
* * @param databaseVersion * The version number for the cluster release. */ public void setDatabaseVersion(String databaseVersion) { this.databaseVersion = databaseVersion; } /** ** The version number for the cluster release. *
* * @return The version number for the cluster release. */ public String getDatabaseVersion() { return this.databaseVersion; } /** ** The version number for the cluster release. *
* * @param databaseVersion * The version number for the cluster release. * @return Returns a reference to this object so that method calls can be chained together. */ public MaintenanceTrack withDatabaseVersion(String databaseVersion) { setDatabaseVersion(databaseVersion); return this; } /** ** An array of UpdateTarget objects to update with the maintenance track. *
* * @return An array of UpdateTarget objects to update with the maintenance track. */ public java.util.List* An array of UpdateTarget objects to update with the maintenance track. *
* * @param updateTargets * An array of UpdateTarget objects to update with the maintenance track. */ public void setUpdateTargets(java.util.Collection* An array of UpdateTarget objects to update with the maintenance track. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUpdateTargets(java.util.Collection)} or {@link #withUpdateTargets(java.util.Collection)} if you want * to override the existing values. *
* * @param updateTargets * An array of UpdateTarget objects to update with the maintenance track. * @return Returns a reference to this object so that method calls can be chained together. */ public MaintenanceTrack withUpdateTargets(UpdateTarget... updateTargets) { if (this.updateTargets == null) { setUpdateTargets(new com.amazonaws.internal.SdkInternalList* An array of UpdateTarget objects to update with the maintenance track. *
* * @param updateTargets * An array of UpdateTarget objects to update with the maintenance track. * @return Returns a reference to this object so that method calls can be chained together. */ public MaintenanceTrack withUpdateTargets(java.util.Collection