Class ExpirationDefaults
Expiration defaults for your account
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ExpirationDefaults")]
public class ExpirationDefaults : IEquatable<ExpirationDefaults>, IValidatableObject
Constructors
View SourceExpirationDefaults()
Initializes a new instance of the ExpirationDefaults class.
Declaration
[JsonConstructor]
protected ExpirationDefaults()
ExpirationDefaults(long?, long?, DateTime?, bool, bool)
Initializes a new instance of the ExpirationDefaults class.
Declaration
public ExpirationDefaults(long? defaultExpirationMillis = null, long? maxExpirationMillis = null, DateTime? defaultExpiresAt = null, bool canPermanentInbox = false, bool nextInboxAllowsPermanent = false)
Parameters
Type | Name | Description |
---|---|---|
long? | defaultExpirationMillis | defaultExpirationMillis. |
long? | maxExpirationMillis | maxExpirationMillis. |
DateTime? | defaultExpiresAt | defaultExpiresAt. |
bool | canPermanentInbox | canPermanentInbox (required). |
bool | nextInboxAllowsPermanent | nextInboxAllowsPermanent (required). |
Properties
View SourceCanPermanentInbox
Gets or Sets CanPermanentInbox
Declaration
[DataMember(Name = "canPermanentInbox", IsRequired = true, EmitDefaultValue = true)]
public bool CanPermanentInbox { get; set; }
Property Value
Type | Description |
---|---|
bool |
DefaultExpirationMillis
Gets or Sets DefaultExpirationMillis
Declaration
[DataMember(Name = "defaultExpirationMillis", EmitDefaultValue = true)]
public long? DefaultExpirationMillis { get; set; }
Property Value
Type | Description |
---|---|
long? |
DefaultExpiresAt
Gets or Sets DefaultExpiresAt
Declaration
[DataMember(Name = "defaultExpiresAt", EmitDefaultValue = true)]
public DateTime? DefaultExpiresAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
MaxExpirationMillis
Gets or Sets MaxExpirationMillis
Declaration
[DataMember(Name = "maxExpirationMillis", EmitDefaultValue = true)]
public long? MaxExpirationMillis { get; set; }
Property Value
Type | Description |
---|---|
long? |
NextInboxAllowsPermanent
Gets or Sets NextInboxAllowsPermanent
Declaration
[DataMember(Name = "nextInboxAllowsPermanent", IsRequired = true, EmitDefaultValue = true)]
public bool NextInboxAllowsPermanent { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceEquals(ExpirationDefaults)
Returns true if ExpirationDefaults instances are equal
Declaration
public bool Equals(ExpirationDefaults input)
Parameters
Type | Name | Description |
---|---|---|
ExpirationDefaults | input | Instance of ExpirationDefaults 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 |