/* * 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 iam-2010-05-08.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.IdentityManagement.Model { /// /// Contains information about a virtual MFA device. /// public partial class VirtualMFADevice { private MemoryStream _base32StringSeed; private DateTime? _enableDate; private MemoryStream _qrCodePNG; private string _serialNumber; private List _tags = new List(); private User _user; /// /// Gets and sets the property Base32StringSeed. /// /// The base32 seed defined as specified in RFC3548. /// The Base32StringSeed is base32-encoded. /// /// [AWSProperty(Sensitive=true)] public MemoryStream Base32StringSeed { get { return this._base32StringSeed; } set { this._base32StringSeed = value; } } // Check to see if Base32StringSeed property is set internal bool IsSetBase32StringSeed() { return this._base32StringSeed != null; } /// /// Gets and sets the property EnableDate. /// /// The date and time on which the virtual MFA device was enabled. /// /// public DateTime EnableDate { get { return this._enableDate.GetValueOrDefault(); } set { this._enableDate = value; } } // Check to see if EnableDate property is set internal bool IsSetEnableDate() { return this._enableDate.HasValue; } /// /// Gets and sets the property QRCodePNG. /// /// A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String /// where $virtualMFADeviceName is one of the create call arguments. AccountName /// is the user name if set (otherwise, the account ID otherwise), and Base32String /// is the seed in base32 format. The Base32String value is base64-encoded. /// /// /// [AWSProperty(Sensitive=true)] public MemoryStream QRCodePNG { get { return this._qrCodePNG; } set { this._qrCodePNG = value; } } // Check to see if QRCodePNG property is set internal bool IsSetQRCodePNG() { return this._qrCodePNG != null; } /// /// Gets and sets the property SerialNumber. /// /// The serial number associated with VirtualMFADevice. /// /// [AWSProperty(Required=true, Min=9, Max=256)] public string SerialNumber { get { return this._serialNumber; } set { this._serialNumber = value; } } // Check to see if SerialNumber property is set internal bool IsSetSerialNumber() { return this._serialNumber != null; } /// /// Gets and sets the property Tags. /// /// A list of tags that are attached to the virtual MFA device. For more information about /// tagging, see Tagging /// IAM resources in the IAM User Guide. /// /// [AWSProperty(Max=50)] 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; } /// /// Gets and sets the property User. /// /// The IAM user associated with this virtual MFA device. /// /// public User User { get { return this._user; } set { this._user = value; } } // Check to see if User property is set internal bool IsSetUser() { return this._user != null; } } }