/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
///
/// Container for the parameters to the CreateBackupSelection operation.
/// Creates a JSON document that specifies a set of resources to assign to a backup plan.
/// For examples, see Assigning
/// resources programmatically.
///
public partial class CreateBackupSelectionRequest : AmazonBackupRequest
{
private string _backupPlanId;
private BackupSelection _backupSelection;
private string _creatorRequestId;
///
/// Gets and sets the property BackupPlanId.
///
/// Uniquely identifies the backup plan to be associated with the selection of resources.
///
///
[AWSProperty(Required=true)]
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
///
/// Gets and sets the property BackupSelection.
///
/// Specifies the body of a request to assign a set of resources to a backup plan.
///
///
[AWSProperty(Required=true)]
public BackupSelection BackupSelection
{
get { return this._backupSelection; }
set { this._backupSelection = value; }
}
// Check to see if BackupSelection property is set
internal bool IsSetBackupSelection()
{
return this._backupSelection != null;
}
///
/// Gets and sets the property CreatorRequestId.
///
/// A unique string that identifies the request and allows failed requests to be retried
/// without the risk of running the operation twice. This parameter is optional.
///
///
///
/// If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
///
///
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
}
}