/// <summary>
 /// Créez un nouvel objet Password.
 /// </summary>
 /// <param name="value">Valeur initiale de la propriété Value.</param>
 /// <param name="allowSave">Valeur initiale de la propriété AllowSave.</param>
 public static Password CreatePassword(global::System.String value, global::System.Boolean allowSave)
 {
     Password password = new Password();
     password.Value = value;
     password.AllowSave = allowSave;
     return password;
 }
 /// <summary>
 /// Créez un nouvel objet MailServer.
 /// </summary>
 /// <param name="id">Valeur initiale de la propriété ID.</param>
 /// <param name="host">Valeur initiale de la propriété Host.</param>
 /// <param name="username">Valeur initiale de la propriété Username.</param>
 /// <param name="password">Valeur initiale de la propriété Password.</param>
 public static MailServer CreateMailServer(global::System.Int32 id, global::System.String host, global::System.String username, Password password)
 {
     MailServer mailServer = new MailServer();
     mailServer.ID = id;
     mailServer.Host = host;
     mailServer.Username = username;
     mailServer.Password = StructuralObject.VerifyComplexObjectIsNotNull(password, "Password");
     return mailServer;
 }
 partial void OnPasswordChanging(Password value);
 /// <summary>
 /// Créez un nouvel objet WithAuthentification.
 /// </summary>
 /// <param name="id">Valeur initiale de la propriété ID.</param>
 /// <param name="host">Valeur initiale de la propriété Host.</param>
 /// <param name="username">Valeur initiale de la propriété Username.</param>
 /// <param name="password">Valeur initiale de la propriété Password.</param>
 public static WithAuthentification CreateWithAuthentification(global::System.Int32 id, global::System.String host, global::System.String username, Password password)
 {
     WithAuthentification withAuthentification = new WithAuthentification();
     withAuthentification.ID = id;
     withAuthentification.Host = host;
     withAuthentification.Username = username;
     withAuthentification.Password = StructuralObject.VerifyComplexObjectIsNotNull(password, "Password");
     return withAuthentification;
 }