/* * 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 acm-pca-2017-08-22.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.ACMPCA.Model { /// /// Describes an ASN.1 X.400 GeneralName as defined in RFC /// 5280. Only one of the following naming options should be provided. Providing more /// than one option results in an InvalidArgsException error. /// public partial class GeneralName { private ASN1Subject _directoryName; private string _dnsName; private EdiPartyName _ediPartyName; private string _ipAddress; private OtherName _otherName; private string _registeredId; private string _rfc822Name; private string _uniformResourceIdentifier; /// /// Gets and sets the property DirectoryName. /// public ASN1Subject DirectoryName { get { return this._directoryName; } set { this._directoryName = value; } } // Check to see if DirectoryName property is set internal bool IsSetDirectoryName() { return this._directoryName != null; } /// /// Gets and sets the property DnsName. /// /// Represents GeneralName as a DNS name. /// /// [AWSProperty(Min=0, Max=253)] public string DnsName { get { return this._dnsName; } set { this._dnsName = value; } } // Check to see if DnsName property is set internal bool IsSetDnsName() { return this._dnsName != null; } /// /// Gets and sets the property EdiPartyName. /// /// Represents GeneralName as an EdiPartyName object. /// /// public EdiPartyName EdiPartyName { get { return this._ediPartyName; } set { this._ediPartyName = value; } } // Check to see if EdiPartyName property is set internal bool IsSetEdiPartyName() { return this._ediPartyName != null; } /// /// Gets and sets the property IpAddress. /// /// Represents GeneralName as an IPv4 or IPv6 address. /// /// [AWSProperty(Min=0, Max=39)] public string IpAddress { get { return this._ipAddress; } set { this._ipAddress = value; } } // Check to see if IpAddress property is set internal bool IsSetIpAddress() { return this._ipAddress != null; } /// /// Gets and sets the property OtherName. /// /// Represents GeneralName using an OtherName object. /// /// public OtherName OtherName { get { return this._otherName; } set { this._otherName = value; } } // Check to see if OtherName property is set internal bool IsSetOtherName() { return this._otherName != null; } /// /// Gets and sets the property RegisteredId. /// /// Represents GeneralName as an object identifier (OID). /// /// [AWSProperty(Min=0, Max=64)] public string RegisteredId { get { return this._registeredId; } set { this._registeredId = value; } } // Check to see if RegisteredId property is set internal bool IsSetRegisteredId() { return this._registeredId != null; } /// /// Gets and sets the property Rfc822Name. /// /// Represents GeneralName as an RFC /// 822 email address. /// /// [AWSProperty(Min=0, Max=256)] public string Rfc822Name { get { return this._rfc822Name; } set { this._rfc822Name = value; } } // Check to see if Rfc822Name property is set internal bool IsSetRfc822Name() { return this._rfc822Name != null; } /// /// Gets and sets the property UniformResourceIdentifier. /// /// Represents GeneralName as a URI. /// /// [AWSProperty(Min=0, Max=253)] public string UniformResourceIdentifier { get { return this._uniformResourceIdentifier; } set { this._uniformResourceIdentifier = value; } } // Check to see if UniformResourceIdentifier property is set internal bool IsSetUniformResourceIdentifier() { return this._uniformResourceIdentifier != null; } } }