Class AliasDto
Email alias representation
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "AliasDto")]
public class AliasDto : IEquatable<AliasDto>, IValidatableObject
Constructors
View SourceAliasDto()
Initializes a new instance of the AliasDto class.
Declaration
[JsonConstructor]
protected AliasDto()
AliasDto(Guid, string, string, Guid, Guid, string, bool?, bool, Guid?, DateTime?, DateTime?)
Initializes a new instance of the AliasDto class.
Declaration
public AliasDto(Guid id = default, string emailAddress = null, string maskedEmailAddress = null, Guid userId = default, Guid inboxId = default, string name = null, bool? useThreads = null, bool isVerified = false, Guid? domainId = null, DateTime? createdAt = null, DateTime? updatedAt = null)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
string | emailAddress | The alias's email address for receiving email (required). |
string | maskedEmailAddress | The underlying email address that is hidden and will received forwarded email. |
System.Guid | userId | userId (required). |
System.Guid | inboxId | Inbox that is associated with the alias (required). |
string | name | name. |
bool? | useThreads | If alias will generate response threads or not when email are received by it. |
bool | isVerified | Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account (required). |
System.Guid? | domainId | Domain ID associated with the alias. |
DateTime? | createdAt | createdAt. |
DateTime? | updatedAt | updatedAt. |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", EmitDefaultValue = true)]
public DateTime? CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
DomainId
Domain ID associated with the alias
Declaration
[DataMember(Name = "domainId", EmitDefaultValue = true)]
public Guid? DomainId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? | Domain ID associated with the alias |
EmailAddress
The alias's email address for receiving email
Declaration
[DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)]
public string EmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string | The alias's email address for receiving email |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
InboxId
Inbox that is associated with the alias
Declaration
[DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | Inbox that is associated with the alias |
IsVerified
Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account
Declaration
[DataMember(Name = "isVerified", IsRequired = true, EmitDefaultValue = true)]
public bool IsVerified { get; set; }
Property Value
Type | Description |
---|---|
bool | Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account |
MaskedEmailAddress
The underlying email address that is hidden and will received forwarded email
Declaration
[DataMember(Name = "maskedEmailAddress", EmitDefaultValue = true)]
public string MaskedEmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string | The underlying email address that is hidden and will received forwarded email |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
UseThreads
If alias will generate response threads or not when email are received by it
Declaration
[DataMember(Name = "useThreads", EmitDefaultValue = true)]
public bool? UseThreads { get; set; }
Property Value
Type | Description |
---|---|
bool? | If alias will generate response threads or not when email are received by it |
Methods
View SourceEquals(AliasDto)
Returns true if AliasDto instances are equal
Declaration
public bool Equals(AliasDto input)
Parameters
Type | Name | Description |
---|---|---|
AliasDto | input | Instance of AliasDto to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Equals(object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
object | input | Object to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Overrides
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |
Overrides
Validate(ValidationContext)
To validate all properties of the instance
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | Validation Result |