/* * 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; /** *
* A list of backup options for each resource type. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AdvancedBackupSetting implements Serializable, Cloneable, StructuredPojo { /** ** Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 * instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide. *
*
* Valid values: EC2
.
*
* Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. *
** Valid values: *
*
* Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create a
* Windows VSS backup.
*
* Set to "WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS
option is not
* enabled by default.
*
* If you specify an invalid option, you get an InvalidParameterValueException
exception.
*
* For more information about Windows VSS backups, see Creating a VSS-Enabled Windows * Backup. *
*/ private java.util.Map* Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 * instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide. *
*
* Valid values: EC2
.
*
* Valid values: EC2
.
*/
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 * instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide. *
*
* Valid values: EC2
.
*
* Valid values: EC2
.
*/
public String getResourceType() {
return this.resourceType;
}
/**
*
* Specifies an object containing resource type and backup options. The only supported resource type is Amazon EC2 * instances with Windows Volume Shadow Copy Service (VSS). For a CloudFormation example, see the sample CloudFormation template to enable Windows VSS in the Backup User Guide. *
*
* Valid values: EC2
.
*
* Valid values: EC2
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AdvancedBackupSetting withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs. *
** Valid values: *
*
* Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create a
* Windows VSS backup.
*
* Set to "WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS
option is not
* enabled by default.
*
* If you specify an invalid option, you get an InvalidParameterValueException
exception.
*
* For more information about Windows VSS backups, see Creating a VSS-Enabled Windows * Backup. *
* * @return Specifies the backup option for a selected resource. This option is only available for Windows VSS backup * jobs. ** Valid values: *
*
* Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create
* a Windows VSS backup.
*
* Set to "WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS
* option is not enabled by default.
*
* If you specify an invalid option, you get an InvalidParameterValueException
exception.
*
* For more information about Windows VSS backups, see Creating a VSS-Enabled
* Windows Backup.
*/
public java.util.Map
* Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
*
* Valid values:
*
* Set to
* Set to
* If you specify an invalid option, you get an
* For more information about Windows VSS backups, see Creating a VSS-Enabled Windows
* Backup.
* "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create a
* Windows VSS backup.
* "WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS
option is not
* enabled by default.
* InvalidParameterValueException
exception.
*
* Valid values: *
*
* Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create
* a Windows VSS backup.
*
* Set to "WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS
option
* is not enabled by default.
*
* If you specify an invalid option, you get an InvalidParameterValueException
exception.
*
* For more information about Windows VSS backups, see Creating a VSS-Enabled
* Windows Backup.
*/
public void setBackupOptions(java.util.Map
* Specifies the backup option for a selected resource. This option is only available for Windows VSS backup jobs.
*
* Valid values:
*
* Set to
* Set to
* If you specify an invalid option, you get an
* For more information about Windows VSS backups, see Creating a VSS-Enabled Windows
* Backup.
* "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create a
* Windows VSS backup.
* "WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS
option is not
* enabled by default.
* InvalidParameterValueException
exception.
*
* Valid values: *
*
* Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create
* a Windows VSS backup.
*
* Set to "WindowsVSS":"disabled"
to create a regular backup. The WindowsVSS
option
* is not enabled by default.
*
* If you specify an invalid option, you get an InvalidParameterValueException
exception.
*
* For more information about Windows VSS backups, see Creating a VSS-Enabled
* Windows Backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AdvancedBackupSetting withBackupOptions(java.util.Map