Class BillingAddressDetails
Address details.
Inheritance
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.Billing.dll
Syntax
public class BillingAddressDetails : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Billing.Models.BillingAddressDetails>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Billing.Models.BillingAddressDetails>
Constructors
BillingAddressDetails(String, String)
Initializes a new instance of BillingAddressDetails.
Declaration
public BillingAddressDetails (string addressLine1, string country);
Parameters
System.String
addressLine1
Address line 1. |
System.String
country
Country code uses ISO 3166-1 Alpha-2 format. |
Exceptions
System.ArgumentNullException
|
Properties
AddressLine1
Address line 1.
Declaration
public string AddressLine1 { get; set; }
Property Value
System.String
|
AddressLine2
Address line 2.
Declaration
public string AddressLine2 { get; set; }
Property Value
System.String
|
AddressLine3
Address line 3.
Declaration
public string AddressLine3 { get; set; }
Property Value
System.String
|
City
Address city.
Declaration
public string City { get; set; }
Property Value
System.String
|
CompanyName
Company name. Optional for MCA Individual (Pay-as-you-go).
Declaration
public string CompanyName { get; set; }
Property Value
System.String
|
Country
Country code uses ISO 3166-1 Alpha-2 format.
Declaration
public string Country { get; set; }
Property Value
System.String
|
District
Address district.
Declaration
public string District { get; set; }
Property Value
System.String
|
Email address.
Declaration
public string Email { get; set; }
Property Value
System.String
|
FirstName
First name. Optional for MCA Enterprise.
Declaration
public string FirstName { get; set; }
Property Value
System.String
|
IsValidAddress
Indicates if the address is incomplete.
Declaration
public Nullable<bool> IsValidAddress { get; set; }
Property Value
System.Nullable<System.Boolean>
|
LastName
Last name. Optional for MCA Enterprise.
Declaration
public string LastName { get; set; }
Property Value
System.String
|
MiddleName
Middle name.
Declaration
public string MiddleName { get; set; }
Property Value
System.String
|
PhoneNumber
Phone number.
Declaration
public string PhoneNumber { get; set; }
Property Value
System.String
|
PostalCode
Postal code.
Declaration
public string PostalCode { get; set; }
Property Value
System.String
|
Region
Address region.
Declaration
public string Region { get; set; }
Property Value
System.String
|
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
Declaration
protected virtual void JsonModelWriteCore (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonWriter
writer
The JSON writer. |
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The client options for reading and writing models. |
Explicit Interface Implementations
IJsonModel<BillingAddressDetails>.Create(Utf8JsonReader, ModelReaderWriterOptions)
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.
Declaration
Azure.ResourceManager.Billing.Models.BillingAddressDetails IJsonModel<BillingAddressDetails>.Create (ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonReader
reader
The System.Text.Json.Utf8JsonReader to read. |
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Returns
BillingAddressDetails
A |
Exceptions
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |
IJsonModel<BillingAddressDetails>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
Writes the model to the provided System.Text.Json.Utf8JsonWriter.
Declaration
void IJsonModel<BillingAddressDetails>.Write (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonWriter
writer
The System.Text.Json.Utf8JsonWriter to write into. |
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Exceptions
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |
IPersistableModel<BillingAddressDetails>.Create(BinaryData, ModelReaderWriterOptions)
Converts the provided System.BinaryData into a model.
Declaration
Azure.ResourceManager.Billing.Models.BillingAddressDetails IPersistableModel<BillingAddressDetails>.Create (BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.BinaryData
data
The System.BinaryData to parse. |
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Returns
BillingAddressDetails
A |
Exceptions
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |
IPersistableModel<BillingAddressDetails>.GetFormatFromOptions(ModelReaderWriterOptions)
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.
Declaration
string IPersistableModel<BillingAddressDetails>.GetFormatFromOptions (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to consider when serializing and deserializing the model. |
Returns
System.String
The format that the model uses when communicating with the serivce. |
IPersistableModel<BillingAddressDetails>.Write(ModelReaderWriterOptions)
Writes the model into a System.BinaryData.
Declaration
BinaryData IPersistableModel<BillingAddressDetails>.Write (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.ClientModel.Primitives.ModelReaderWriterOptions
options
The System.ClientModel.Primitives.ModelReaderWriterOptions to use. |
Returns
System.BinaryData
A binary representation of the written model. |
Exceptions
System.FormatException
If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format. |