Class CreateEmergencyAddressOptions
CreateEmergencyAddressOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "CreateEmergencyAddressOptions")]
public class CreateEmergencyAddressOptions : IEquatable<CreateEmergencyAddressOptions>, IValidatableObject
Constructors
View SourceCreateEmergencyAddressOptions()
Initializes a new instance of the CreateEmergencyAddressOptions class.
Declaration
[JsonConstructor]
protected CreateEmergencyAddressOptions()
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 SourceAddress1
Gets or Sets Address1
Declaration
[DataMember(Name = "address1", IsRequired = true, EmitDefaultValue = true)]
public string Address1 { get; set; }
Property Value
Type | Description |
---|---|
string |
City
Gets or Sets City
Declaration
[DataMember(Name = "city", IsRequired = true, EmitDefaultValue = true)]
public string City { get; set; }
Property Value
Type | Description |
---|---|
string |
CustomerName
Gets or Sets CustomerName
Declaration
[DataMember(Name = "customerName", IsRequired = true, EmitDefaultValue = true)]
public string CustomerName { get; set; }
Property Value
Type | Description |
---|---|
string |
DisplayName
Gets or Sets DisplayName
Declaration
[DataMember(Name = "displayName", EmitDefaultValue = false)]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
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 |
PostalCode
Gets or Sets PostalCode
Declaration
[DataMember(Name = "postalCode", IsRequired = true, EmitDefaultValue = true)]
public string PostalCode { get; set; }
Property Value
Type | Description |
---|---|
string |
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 SourceEquals(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 |
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 |