/* * 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 sms-2016-10-24.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.ServerMigrationService.Model { /// /// The replication parameters for replicating a server. /// public partial class ServerReplicationParameters { private bool? _encrypted; private int? _frequency; private string _kmsKeyId; private LicenseType _licenseType; private int? _numberOfRecentAmisToKeep; private bool? _runOnce; private DateTime? _seedTime; /// /// Gets and sets the property Encrypted. /// /// Indicates whether the replication job produces encrypted AMIs. /// /// public bool Encrypted { get { return this._encrypted.GetValueOrDefault(); } set { this._encrypted = value; } } // Check to see if Encrypted property is set internal bool IsSetEncrypted() { return this._encrypted.HasValue; } /// /// Gets and sets the property Frequency. /// /// The frequency of creating replication jobs for the server. /// /// public int Frequency { get { return this._frequency.GetValueOrDefault(); } set { this._frequency = value; } } // Check to see if Frequency property is set internal bool IsSetFrequency() { return this._frequency.HasValue; } /// /// Gets and sets the property KmsKeyId. /// /// The ID of the KMS key for replication jobs that produce encrypted AMIs. This value /// can be any of the following: /// /// /// /// If encrypted is enabled but a KMS key ID is not specified, the customer's default /// KMS key for Amazon EBS is used. /// /// public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property LicenseType. /// /// The license type for creating a replication job for the server. /// /// public LicenseType LicenseType { get { return this._licenseType; } set { this._licenseType = value; } } // Check to see if LicenseType property is set internal bool IsSetLicenseType() { return this._licenseType != null; } /// /// Gets and sets the property NumberOfRecentAmisToKeep. /// /// The number of recent AMIs to keep when creating a replication job for this server. /// /// public int NumberOfRecentAmisToKeep { get { return this._numberOfRecentAmisToKeep.GetValueOrDefault(); } set { this._numberOfRecentAmisToKeep = value; } } // Check to see if NumberOfRecentAmisToKeep property is set internal bool IsSetNumberOfRecentAmisToKeep() { return this._numberOfRecentAmisToKeep.HasValue; } /// /// Gets and sets the property RunOnce. /// /// Indicates whether to run the replication job one time. /// /// public bool RunOnce { get { return this._runOnce.GetValueOrDefault(); } set { this._runOnce = value; } } // Check to see if RunOnce property is set internal bool IsSetRunOnce() { return this._runOnce.HasValue; } /// /// Gets and sets the property SeedTime. /// /// The seed time for creating a replication job for the server. /// /// public DateTime SeedTime { get { return this._seedTime.GetValueOrDefault(); } set { this._seedTime = value; } } // Check to see if SeedTime property is set internal bool IsSetSeedTime() { return this._seedTime.HasValue; } } }