Search Results for

    Show / Hide Table of Contents

    Class CreateEmergencyAddressOptions

    CreateEmergencyAddressOptions

    Inheritance
    object
    CreateEmergencyAddressOptions
    Implements
    IEquatable<CreateEmergencyAddressOptions>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "CreateEmergencyAddressOptions")]
    public class CreateEmergencyAddressOptions : IEquatable<CreateEmergencyAddressOptions>, IValidatableObject

    Constructors

    View Source

    CreateEmergencyAddressOptions()

    Initializes a new instance of the CreateEmergencyAddressOptions class.

    Declaration
    [JsonConstructor]
    protected CreateEmergencyAddressOptions()
    View Source

    CreateEmergencyAddressOptions(string, string, string, string, string, IsoCountryCodeEnum, string)

    Initializes a new instance of the CreateEmergencyAddressOptions class.

    Declaration
    public CreateEmergencyAddressOptions(string customerName = null, string address1 = null, string city = null, string region = null, string postalCode = null, CreateEmergencyAddressOptions.IsoCountryCodeEnum isoCountryCode = (CreateEmergencyAddressOptions.IsoCountryCodeEnum)0, string displayName = null)
    Parameters
    Type Name Description
    string customerName

    customerName (required).

    string address1

    address1 (required).

    string city

    city (required).

    string region

    region (required).

    string postalCode

    postalCode (required).

    CreateEmergencyAddressOptions.IsoCountryCodeEnum isoCountryCode

    isoCountryCode (required).

    string displayName

    displayName.

    Properties

    View Source

    Address1

    Gets or Sets Address1

    Declaration
    [DataMember(Name = "address1", IsRequired = true, EmitDefaultValue = true)]
    public string Address1 { get; set; }
    Property Value
    Type Description
    string
    View Source

    City

    Gets or Sets City

    Declaration
    [DataMember(Name = "city", IsRequired = true, EmitDefaultValue = true)]
    public string City { get; set; }
    Property Value
    Type Description
    string
    View Source

    CustomerName

    Gets or Sets CustomerName

    Declaration
    [DataMember(Name = "customerName", IsRequired = true, EmitDefaultValue = true)]
    public string CustomerName { get; set; }
    Property Value
    Type Description
    string
    View Source

    DisplayName

    Gets or Sets DisplayName

    Declaration
    [DataMember(Name = "displayName", EmitDefaultValue = false)]
    public string DisplayName { get; set; }
    Property Value
    Type Description
    string
    View Source

    IsoCountryCode

    Gets or Sets IsoCountryCode

    Declaration
    [DataMember(Name = "isoCountryCode", IsRequired = true, EmitDefaultValue = true)]
    public CreateEmergencyAddressOptions.IsoCountryCodeEnum IsoCountryCode { get; set; }
    Property Value
    Type Description
    CreateEmergencyAddressOptions.IsoCountryCodeEnum
    View Source

    PostalCode

    Gets or Sets PostalCode

    Declaration
    [DataMember(Name = "postalCode", IsRequired = true, EmitDefaultValue = true)]
    public string PostalCode { get; set; }
    Property Value
    Type Description
    string
    View Source

    Region

    Gets or Sets Region

    Declaration
    [DataMember(Name = "region", IsRequired = true, EmitDefaultValue = true)]
    public string Region { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Equals(CreateEmergencyAddressOptions)

    Returns true if CreateEmergencyAddressOptions instances are equal

    Declaration
    public bool Equals(CreateEmergencyAddressOptions input)
    Parameters
    Type Name Description
    CreateEmergencyAddressOptions input

    Instance of CreateEmergencyAddressOptions to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    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
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()
    View Source

    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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.