/// <summary> /// Initializes a new instance of the <see cref="DomainPhysicalInterface" /> class. /// </summary> /// <param name="Name">The name of the entity. (required).</param> /// <param name="Division">The division to which this entity belongs..</param> /// <param name="Description">The resource's description..</param> /// <param name="Version">The current version of the resource..</param> /// <param name="DateCreated">The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> /// <param name="DateModified">The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param> /// <param name="ModifiedBy">The ID of the user that last modified the resource..</param> /// <param name="CreatedBy">The ID of the user that created the resource..</param> /// <param name="ModifiedByApp">The application that last modified the resource..</param> /// <param name="CreatedByApp">The application that created the resource..</param> /// <param name="EdgeUri">EdgeUri.</param> /// <param name="FriendlyName">FriendlyName.</param> /// <param name="HardwareAddress">HardwareAddress.</param> /// <param name="PortLabel">PortLabel.</param> /// <param name="PhysicalCapabilities">PhysicalCapabilities.</param> public DomainPhysicalInterface(string Name = null, Division Division = null, string Description = null, int? Version = null, DateTime? DateCreated = null, DateTime? DateModified = null, string ModifiedBy = null, string CreatedBy = null, string ModifiedByApp = null, string CreatedByApp = null, string EdgeUri = null, string FriendlyName = null, string HardwareAddress = null, string PortLabel = null, DomainPhysicalCapabilities PhysicalCapabilities = null) { this.Name = Name; this.Division = Division; this.Description = Description; this.Version = Version; this.DateCreated = DateCreated; this.DateModified = DateModified; this.ModifiedBy = ModifiedBy; this.CreatedBy = CreatedBy; this.ModifiedByApp = ModifiedByApp; this.CreatedByApp = CreatedByApp; this.EdgeUri = EdgeUri; this.FriendlyName = FriendlyName; this.HardwareAddress = HardwareAddress; this.PortLabel = PortLabel; this.PhysicalCapabilities = PhysicalCapabilities; }
/// <summary> /// Initializes a new instance of the <see cref="DomainPhysicalInterface" /> class. /// </summary> /// <param name="Name">The name of the entity. (required).</param> /// <param name="Description">The resource's description..</param> /// <param name="Version">The current version of the resource..</param> /// <param name="DateCreated">The date the resource was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="DateModified">The date of the last modification to the resource. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param> /// <param name="ModifiedBy">The ID of the user that last modified the resource..</param> /// <param name="CreatedBy">The ID of the user that created the resource..</param> /// <param name="ModifiedByApp">The application that last modified the resource..</param> /// <param name="CreatedByApp">The application that created the resource..</param> /// <param name="EdgeUri">EdgeUri.</param> /// <param name="FriendlyName">FriendlyName.</param> /// <param name="HardwareAddress">HardwareAddress.</param> /// <param name="PortLabel">PortLabel.</param> /// <param name="PhysicalCapabilities">PhysicalCapabilities.</param> public DomainPhysicalInterface(string Name = null, string Description = null, int?Version = null, DateTime?DateCreated = null, DateTime?DateModified = null, string ModifiedBy = null, string CreatedBy = null, string ModifiedByApp = null, string CreatedByApp = null, string EdgeUri = null, string FriendlyName = null, string HardwareAddress = null, string PortLabel = null, DomainPhysicalCapabilities PhysicalCapabilities = null) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for DomainPhysicalInterface and cannot be null"); } else { this.Name = Name; } this.Description = Description; this.Version = Version; this.DateCreated = DateCreated; this.DateModified = DateModified; this.ModifiedBy = ModifiedBy; this.CreatedBy = CreatedBy; this.ModifiedByApp = ModifiedByApp; this.CreatedByApp = CreatedByApp; this.EdgeUri = EdgeUri; this.FriendlyName = FriendlyName; this.HardwareAddress = HardwareAddress; this.PortLabel = PortLabel; this.PhysicalCapabilities = PhysicalCapabilities; }