/// <summary> /// Initializes a new instance of the <see cref="GetUniversePlanetsPlanetIdOk" /> class. /// </summary> /// <param name="Name">name string (required).</param> /// <param name="PlanetId">planet_id integer (required).</param> /// <param name="Position">Position (required).</param> /// <param name="SystemId">The solar system this planet is in (required).</param> /// <param name="TypeId">type_id integer (required).</param> public GetUniversePlanetsPlanetIdOk(string Name = default(string), int?PlanetId = default(int?), GetUniversePlanetsPlanetIdPosition Position = default(GetUniversePlanetsPlanetIdPosition), int?SystemId = default(int?), int?TypeId = default(int?)) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.Name = Name; } // to ensure "PlanetId" is required (not null) if (PlanetId == null) { throw new InvalidDataException("PlanetId is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.PlanetId = PlanetId; } // to ensure "Position" is required (not null) if (Position == null) { throw new InvalidDataException("Position is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.Position = Position; } // to ensure "SystemId" is required (not null) if (SystemId == null) { throw new InvalidDataException("SystemId is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.SystemId = SystemId; } // to ensure "TypeId" is required (not null) if (TypeId == null) { throw new InvalidDataException("TypeId is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.TypeId = TypeId; } }
/// <summary> /// Initializes a new instance of the <see cref="GetUniversePlanetsPlanetIdOk" /> class. /// </summary> /// <param name="planetId">planet_id integer (required).</param> /// <param name="name">name string (required).</param> /// <param name="typeId">type_id integer (required).</param> /// <param name="position">position (required).</param> /// <param name="systemId">The solar system this planet is in (required).</param> public GetUniversePlanetsPlanetIdOk(int?planetId = default(int?), string name = default(string), int?typeId = default(int?), GetUniversePlanetsPlanetIdPosition position = default(GetUniversePlanetsPlanetIdPosition), int?systemId = default(int?)) { // to ensure "planetId" is required (not null) if (planetId == null) { throw new InvalidDataException("planetId is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.PlanetId = planetId; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.Name = name; } // to ensure "typeId" is required (not null) if (typeId == null) { throw new InvalidDataException("typeId is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.TypeId = typeId; } // to ensure "position" is required (not null) if (position == null) { throw new InvalidDataException("position is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.Position = position; } // to ensure "systemId" is required (not null) if (systemId == null) { throw new InvalidDataException("systemId is a required property for GetUniversePlanetsPlanetIdOk and cannot be null"); } else { this.SystemId = systemId; } }