/* * 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.backup.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains an optional backup plan display name and an array of BackupRule
objects, each of which
* specifies a backup rule. Each rule in a backup plan is a separate scheduled task and can back up a different
* selection of Amazon Web Services resources.
*
* The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. *
*/ private String backupPlanName; /** *
* An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
* selection of resources.
*
* Contains a list of BackupOptions
for each resource type.
*
* The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. *
* * @param backupPlanName * The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. */ public void setBackupPlanName(String backupPlanName) { this.backupPlanName = backupPlanName; } /** ** The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. *
* * @return The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. */ public String getBackupPlanName() { return this.backupPlanName; } /** ** The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. *
* * @param backupPlanName * The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupPlan withBackupPlanName(String backupPlanName) { setBackupPlanName(backupPlanName); return this; } /** *
* An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
* selection of resources.
*
BackupRule
objects, each of which specifies a scheduled task that is used to
* back up a selection of resources.
*/
public java.util.List
* An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
* selection of resources.
*
BackupRule
objects, each of which specifies a scheduled task that is used to back
* up a selection of resources.
*/
public void setRules(java.util.Collection
* An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
* selection of resources.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRules(java.util.Collection)} or {@link #withRules(java.util.Collection)} if you want to override the * existing values. *
* * @param rules * An array ofBackupRule
objects, each of which specifies a scheduled task that is used to back
* up a selection of resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupPlan withRules(BackupRule... rules) {
if (this.rules == null) {
setRules(new java.util.ArrayList
* An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
* selection of resources.
*
BackupRule
objects, each of which specifies a scheduled task that is used to back
* up a selection of resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupPlan withRules(java.util.Collection
* Contains a list of BackupOptions
for each resource type.
*
BackupOptions
for each resource type.
*/
public java.util.List
* Contains a list of BackupOptions
for each resource type.
*
BackupOptions
for each resource type.
*/
public void setAdvancedBackupSettings(java.util.Collection
* Contains a list of BackupOptions
for each resource type.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdvancedBackupSettings(java.util.Collection)} or * {@link #withAdvancedBackupSettings(java.util.Collection)} if you want to override the existing values. *
* * @param advancedBackupSettings * Contains a list ofBackupOptions
for each resource type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupPlan withAdvancedBackupSettings(AdvancedBackupSetting... advancedBackupSettings) {
if (this.advancedBackupSettings == null) {
setAdvancedBackupSettings(new java.util.ArrayList
* Contains a list of BackupOptions
for each resource type.
*
BackupOptions
for each resource type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BackupPlan withAdvancedBackupSettings(java.util.Collection