/* * 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; /** *
* This specifies criteria to assign a set of resources, such as resource types or backup vaults. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RecoveryPointSelection implements Serializable, Cloneable, StructuredPojo { /** ** These are the names of the vaults in which the selected recovery points are contained. *
*/ private java.util.List* These are the resources included in the resource selection (including type of resources and vaults). *
*/ private java.util.List* These are the names of the vaults in which the selected recovery points are contained. *
* * @return These are the names of the vaults in which the selected recovery points are contained. */ public java.util.List* These are the names of the vaults in which the selected recovery points are contained. *
* * @param vaultNames * These are the names of the vaults in which the selected recovery points are contained. */ public void setVaultNames(java.util.Collection* These are the names of the vaults in which the selected recovery points are contained. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVaultNames(java.util.Collection)} or {@link #withVaultNames(java.util.Collection)} if you want to * override the existing values. *
* * @param vaultNames * These are the names of the vaults in which the selected recovery points are contained. * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointSelection withVaultNames(String... vaultNames) { if (this.vaultNames == null) { setVaultNames(new java.util.ArrayList* These are the names of the vaults in which the selected recovery points are contained. *
* * @param vaultNames * These are the names of the vaults in which the selected recovery points are contained. * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointSelection withVaultNames(java.util.Collection* These are the resources included in the resource selection (including type of resources and vaults). *
* * @return These are the resources included in the resource selection (including type of resources and vaults). */ public java.util.List* These are the resources included in the resource selection (including type of resources and vaults). *
* * @param resourceIdentifiers * These are the resources included in the resource selection (including type of resources and vaults). */ public void setResourceIdentifiers(java.util.Collection* These are the resources included in the resource selection (including type of resources and vaults). *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceIdentifiers(java.util.Collection)} or {@link #withResourceIdentifiers(java.util.Collection)} * if you want to override the existing values. *
* * @param resourceIdentifiers * These are the resources included in the resource selection (including type of resources and vaults). * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointSelection withResourceIdentifiers(String... resourceIdentifiers) { if (this.resourceIdentifiers == null) { setResourceIdentifiers(new java.util.ArrayList* These are the resources included in the resource selection (including type of resources and vaults). *
* * @param resourceIdentifiers * These are the resources included in the resource selection (including type of resources and vaults). * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointSelection withResourceIdentifiers(java.util.Collection