/* * 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; /** *
* A maintenance track that you can switch the current track to. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateTarget implements Serializable, Cloneable { /** ** The name of the new maintenance track. *
*/ private String maintenanceTrackName; /** ** The cluster version for the new maintenance track. *
*/ private String databaseVersion; /** ** A list of operations supported by the maintenance track. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the new maintenance track. *
* * @param maintenanceTrackName * The name of the new maintenance track. */ public void setMaintenanceTrackName(String maintenanceTrackName) { this.maintenanceTrackName = maintenanceTrackName; } /** ** The name of the new maintenance track. *
* * @return The name of the new maintenance track. */ public String getMaintenanceTrackName() { return this.maintenanceTrackName; } /** ** The name of the new maintenance track. *
* * @param maintenanceTrackName * The name of the new maintenance track. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTarget withMaintenanceTrackName(String maintenanceTrackName) { setMaintenanceTrackName(maintenanceTrackName); return this; } /** ** The cluster version for the new maintenance track. *
* * @param databaseVersion * The cluster version for the new maintenance track. */ public void setDatabaseVersion(String databaseVersion) { this.databaseVersion = databaseVersion; } /** ** The cluster version for the new maintenance track. *
* * @return The cluster version for the new maintenance track. */ public String getDatabaseVersion() { return this.databaseVersion; } /** ** The cluster version for the new maintenance track. *
* * @param databaseVersion * The cluster version for the new maintenance track. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTarget withDatabaseVersion(String databaseVersion) { setDatabaseVersion(databaseVersion); return this; } /** ** A list of operations supported by the maintenance track. *
* * @return A list of operations supported by the maintenance track. */ public java.util.List* A list of operations supported by the maintenance track. *
* * @param supportedOperations * A list of operations supported by the maintenance track. */ public void setSupportedOperations(java.util.Collection* A list of operations supported by the maintenance track. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedOperations(java.util.Collection)} or {@link #withSupportedOperations(java.util.Collection)} * if you want to override the existing values. *
* * @param supportedOperations * A list of operations supported by the maintenance track. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTarget withSupportedOperations(SupportedOperation... supportedOperations) { if (this.supportedOperations == null) { setSupportedOperations(new com.amazonaws.internal.SdkInternalList* A list of operations supported by the maintenance track. *
* * @param supportedOperations * A list of operations supported by the maintenance track. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTarget withSupportedOperations(java.util.Collection