/* * 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 redshift-serverless-2021-04-21.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.RedshiftServerless.Model { /// /// Container for the parameters to the CreateSnapshot operation. /// Creates a snapshot of all databases in a namespace. For more information about snapshots, /// see /// Working with snapshots and recovery points. /// public partial class CreateSnapshotRequest : AmazonRedshiftServerlessRequest { private string _namespaceName; private int? _retentionPeriod; private string _snapshotName; private List _tags = new List(); /// /// Gets and sets the property NamespaceName. /// /// The namespace to create a snapshot for. /// /// [AWSProperty(Required=true)] public string NamespaceName { get { return this._namespaceName; } set { this._namespaceName = value; } } // Check to see if NamespaceName property is set internal bool IsSetNamespaceName() { return this._namespaceName != null; } /// /// Gets and sets the property RetentionPeriod. /// /// How long to retain the created snapshot. /// /// public int RetentionPeriod { get { return this._retentionPeriod.GetValueOrDefault(); } set { this._retentionPeriod = value; } } // Check to see if RetentionPeriod property is set internal bool IsSetRetentionPeriod() { return this._retentionPeriod.HasValue; } /// /// Gets and sets the property SnapshotName. /// /// The name of the snapshot. /// /// [AWSProperty(Required=true)] public string SnapshotName { get { return this._snapshotName; } set { this._snapshotName = value; } } // Check to see if SnapshotName property is set internal bool IsSetSnapshotName() { return this._snapshotName != null; } /// /// Gets and sets the property Tags. /// /// An array of Tag /// objects to associate with the snapshot. /// /// [AWSProperty(Min=0, Max=200)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }