/// <summary> /// Initializes a new instance of the <see cref="EnumTest" /> class. /// </summary> /// <param name="enumString">enumString.</param> /// <param name="enumStringRequired">enumStringRequired (required).</param> /// <param name="enumInteger">enumInteger.</param> /// <param name="enumNumber">enumNumber.</param> /// <param name="outerEnum">outerEnum.</param> public EnumTest(EnumStringEnum?enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum?enumInteger = default(EnumIntegerEnum?), EnumNumberEnum?enumNumber = default(EnumNumberEnum?), OuterEnum?outerEnum = default(OuterEnum?)) { this.EnumStringRequired = enumStringRequired; this.EnumString = enumString; this.EnumInteger = enumInteger; this.EnumNumber = enumNumber; this.OuterEnum = outerEnum; }
/// <summary> /// Initializes a new instance of the <see cref="EnumTest" /> class. /// </summary> /// <param name="enumString">enumString.</param> /// <param name="enumStringRequired">enumStringRequired (required).</param> /// <param name="enumInteger">enumInteger.</param> /// <param name="enumNumber">enumNumber.</param> /// <param name="outerEnum">outerEnum.</param> /// <param name="outerEnumInteger">outerEnumInteger.</param> /// <param name="outerEnumDefaultValue">outerEnumDefaultValue.</param> /// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue.</param> public EnumTest(EnumStringEnum?enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum?enumInteger = default(EnumIntegerEnum?), EnumNumberEnum?enumNumber = default(EnumNumberEnum?), OuterEnum outerEnum = default(OuterEnum), OuterEnumInteger outerEnumInteger = default(OuterEnumInteger), OuterEnumDefaultValue outerEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = default(OuterEnumIntegerDefaultValue)) { this.EnumStringRequired = enumStringRequired; this.EnumString = enumString; this.EnumInteger = enumInteger; this.EnumNumber = enumNumber; this.OuterEnum = outerEnum; this.OuterEnumInteger = outerEnumInteger; this.OuterEnumDefaultValue = outerEnumDefaultValue; this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; }
/// <summary> /// Initializes a new instance of the <see cref="EnumTest" /> class. /// </summary> /// <param name="enumString">enumString.</param> /// <param name="enumStringRequired">enumStringRequired (required).</param> /// <param name="enumInteger">enumInteger.</param> /// <param name="enumNumber">enumNumber.</param> /// <param name="outerEnum">outerEnum.</param> /// <param name="outerEnumInteger">outerEnumInteger.</param> /// <param name="outerEnumDefaultValue">outerEnumDefaultValue.</param> /// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue.</param> public EnumTest(EnumStringEnum?enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum?enumInteger = default(EnumIntegerEnum?), EnumNumberEnum?enumNumber = default(EnumNumberEnum?), OuterEnum?outerEnum = default(OuterEnum?), OuterEnumInteger?outerEnumInteger = default(OuterEnumInteger?), OuterEnumDefaultValue?outerEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumIntegerDefaultValue?outerEnumIntegerDefaultValue = default(OuterEnumIntegerDefaultValue?)) { this.EnumStringRequired = enumStringRequired; this.EnumString = enumString; this.EnumInteger = enumInteger; this.EnumNumber = enumNumber; this.OuterEnum = outerEnum; this.OuterEnumInteger = outerEnumInteger; this.OuterEnumDefaultValue = outerEnumDefaultValue; this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; this.AdditionalProperties = new Dictionary <string, object>(); }
/// <summary> /// Initializes a new instance of the <see cref="EnumTest" /> class. /// </summary> /// <param name="enumStringRequired">enumStringRequired (required).</param> /// <param name="enumString">enumString.</param> /// <param name="enumInteger">enumInteger.</param> /// <param name="enumIntegerOnly">enumIntegerOnly.</param> /// <param name="enumNumber">enumNumber.</param> /// <param name="outerEnum">outerEnum.</param> /// <param name="outerEnumInteger">outerEnumInteger.</param> /// <param name="outerEnumDefaultValue">outerEnumDefaultValue.</param> /// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue.</param> public EnumTest(EnumStringRequiredEnum enumStringRequired, EnumStringEnum enumString = default, EnumIntegerEnum enumInteger = default, EnumIntegerOnlyEnum enumIntegerOnly = default, EnumNumberEnum enumNumber = default, OuterEnum outerEnum = default, OuterEnumInteger outerEnumInteger = default, OuterEnumDefaultValue outerEnumDefaultValue = default, OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = default) { this.EnumStringRequired = enumStringRequired; this.EnumString = enumString; this.EnumInteger = enumInteger; this.EnumIntegerOnly = enumIntegerOnly; this.EnumNumber = enumNumber; this.OuterEnum = outerEnum; this.OuterEnumInteger = outerEnumInteger; this.OuterEnumDefaultValue = outerEnumDefaultValue; this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; this.AdditionalProperties = new Dictionary <string, object>(); }
/// <summary> /// Initializes a new instance of the <see cref="EnumTest" /> class. /// </summary> /// <param name="enumStringRequired">enumStringRequired (required)</param> /// <param name="enumString">enumString</param> /// <param name="enumInteger">enumInteger</param> /// <param name="enumIntegerOnly">enumIntegerOnly</param> /// <param name="enumNumber">enumNumber</param> /// <param name="outerEnum">outerEnum</param> /// <param name="outerEnumInteger">outerEnumInteger</param> /// <param name="outerEnumDefaultValue">outerEnumDefaultValue</param> /// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue</param> public EnumTest(EnumStringRequiredEnum enumStringRequired, EnumStringEnum enumString = default, EnumIntegerEnum enumInteger = default, EnumIntegerOnlyEnum enumIntegerOnly = default, EnumNumberEnum enumNumber = default, OuterEnum outerEnum = default, OuterEnumInteger outerEnumInteger = default, OuterEnumDefaultValue outerEnumDefaultValue = default, OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = default) { if (enumStringRequired == null) throw new ArgumentNullException("enumStringRequired is a required property for EnumTest and cannot be null."); EnumStringRequired = enumStringRequired; EnumString = enumString; EnumInteger = enumInteger; EnumIntegerOnly = enumIntegerOnly; EnumNumber = enumNumber; OuterEnum = outerEnum; OuterEnumInteger = outerEnumInteger; OuterEnumDefaultValue = outerEnumDefaultValue; OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; }
/// <summary> /// Initializes a new instance of the <see cref="EnumTest" /> class. /// </summary> /// <param name="enumString">enumString.</param> /// <param name="enumStringRequired">enumStringRequired (required).</param> /// <param name="enumInteger">enumInteger.</param> /// <param name="enumNumber">enumNumber.</param> /// <param name="outerEnum">outerEnum.</param> public EnumTest(EnumStringEnum?enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum?enumInteger = default(EnumIntegerEnum?), EnumNumberEnum?enumNumber = default(EnumNumberEnum?), OuterEnum?outerEnum = default(OuterEnum?)) { // to ensure "enumStringRequired" is required (not null) if (enumStringRequired == null) { throw new InvalidDataException("enumStringRequired is a required property for EnumTest and cannot be null"); } else { this.EnumStringRequired = enumStringRequired; } this.EnumString = enumString; this.EnumInteger = enumInteger; this.EnumNumber = enumNumber; this.OuterEnum = outerEnum; }
/// <summary> /// Initializes a new instance of the <see cref="EnumTest" /> class. /// </summary> /// <param name="enumString">enumString.</param> /// <param name="enumStringRequired">enumStringRequired (required).</param> /// <param name="enumInteger">enumInteger.</param> /// <param name="enumIntegerOnly">enumIntegerOnly.</param> /// <param name="enumNumber">enumNumber.</param> /// <param name="outerEnum">outerEnum.</param> /// <param name="outerEnumInteger">outerEnumInteger.</param> /// <param name="outerEnumDefaultValue">outerEnumDefaultValue.</param> /// <param name="outerEnumIntegerDefaultValue">outerEnumIntegerDefaultValue.</param> public EnumTest(EnumStringEnum?enumString = default(EnumStringEnum?), EnumStringRequiredEnum enumStringRequired = default(EnumStringRequiredEnum), EnumIntegerEnum?enumInteger = default(EnumIntegerEnum?), EnumIntegerOnlyEnum?enumIntegerOnly = default(EnumIntegerOnlyEnum?), EnumNumberEnum?enumNumber = default(EnumNumberEnum?), OuterEnum?outerEnum = default(OuterEnum?), OuterEnumInteger?outerEnumInteger = default(OuterEnumInteger?), OuterEnumDefaultValue?outerEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumIntegerDefaultValue?outerEnumIntegerDefaultValue = default(OuterEnumIntegerDefaultValue?)) { this._EnumStringRequired = enumStringRequired; this._EnumString = enumString; if (this.EnumString != null) { this._flagEnumString = true; } this._EnumInteger = enumInteger; if (this.EnumInteger != null) { this._flagEnumInteger = true; } this._EnumIntegerOnly = enumIntegerOnly; if (this.EnumIntegerOnly != null) { this._flagEnumIntegerOnly = true; } this._EnumNumber = enumNumber; if (this.EnumNumber != null) { this._flagEnumNumber = true; } this._OuterEnum = outerEnum; if (this.OuterEnum != null) { this._flagOuterEnum = true; } this._OuterEnumInteger = outerEnumInteger; if (this.OuterEnumInteger != null) { this._flagOuterEnumInteger = true; } this._OuterEnumDefaultValue = outerEnumDefaultValue; if (this.OuterEnumDefaultValue != null) { this._flagOuterEnumDefaultValue = true; } this._OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; if (this.OuterEnumIntegerDefaultValue != null) { this._flagOuterEnumIntegerDefaultValue = true; } this.AdditionalProperties = new Dictionary <string, object>(); }