你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphPhysicalOfficeAddress Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPhysicalOfficeAddress

Implements

public final class MicrosoftGraphPhysicalOfficeAddress
implements JsonSerializable<MicrosoftGraphPhysicalOfficeAddress>

physicalOfficeAddress.

Constructor Summary

Constructor Description
MicrosoftGraphPhysicalOfficeAddress()

Creates an instance of MicrosoftGraphPhysicalOfficeAddress class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: physicalOfficeAddress.

String city()

Get the city property: The city.

String countryOrRegion()

Get the countryOrRegion property: The country or region.

static MicrosoftGraphPhysicalOfficeAddress fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPhysicalOfficeAddress from the JsonReader.

String officeLocation()

Get the officeLocation property: Office location such as building and office number for an organizational contact.

String postalCode()

Get the postalCode property: The postal code.

String state()

Get the state property: The state.

String street()

Get the street property: The street.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPhysicalOfficeAddress withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: physicalOfficeAddress.

MicrosoftGraphPhysicalOfficeAddress withCity(String city)

Set the city property: The city.

MicrosoftGraphPhysicalOfficeAddress withCountryOrRegion(String countryOrRegion)

Set the countryOrRegion property: The country or region.

MicrosoftGraphPhysicalOfficeAddress withOfficeLocation(String officeLocation)

Set the officeLocation property: Office location such as building and office number for an organizational contact.

MicrosoftGraphPhysicalOfficeAddress withPostalCode(String postalCode)

Set the postalCode property: The postal code.

MicrosoftGraphPhysicalOfficeAddress withState(String state)

Set the state property: The state.

MicrosoftGraphPhysicalOfficeAddress withStreet(String street)

Set the street property: The street.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPhysicalOfficeAddress

public MicrosoftGraphPhysicalOfficeAddress()

Creates an instance of MicrosoftGraphPhysicalOfficeAddress class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: physicalOfficeAddress.

Returns:

the additionalProperties value.

city

public String city()

Get the city property: The city.

Returns:

the city value.

countryOrRegion

public String countryOrRegion()

Get the countryOrRegion property: The country or region. It's a free-format string value, for example, 'United States'.

Returns:

the countryOrRegion value.

fromJson

public static MicrosoftGraphPhysicalOfficeAddress fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPhysicalOfficeAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphPhysicalOfficeAddress if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphPhysicalOfficeAddress.

officeLocation

public String officeLocation()

Get the officeLocation property: Office location such as building and office number for an organizational contact.

Returns:

the officeLocation value.

postalCode

public String postalCode()

Get the postalCode property: The postal code.

Returns:

the postalCode value.

state

public String state()

Get the state property: The state.

Returns:

the state value.

street

public String street()

Get the street property: The street.

Returns:

the street value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphPhysicalOfficeAddress withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: physicalOfficeAddress.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPhysicalOfficeAddress object itself.

withCity

public MicrosoftGraphPhysicalOfficeAddress withCity(String city)

Set the city property: The city.

Parameters:

city - the city value to set.

Returns:

the MicrosoftGraphPhysicalOfficeAddress object itself.

withCountryOrRegion

public MicrosoftGraphPhysicalOfficeAddress withCountryOrRegion(String countryOrRegion)

Set the countryOrRegion property: The country or region. It's a free-format string value, for example, 'United States'.

Parameters:

countryOrRegion - the countryOrRegion value to set.

Returns:

the MicrosoftGraphPhysicalOfficeAddress object itself.

withOfficeLocation

public MicrosoftGraphPhysicalOfficeAddress withOfficeLocation(String officeLocation)

Set the officeLocation property: Office location such as building and office number for an organizational contact.

Parameters:

officeLocation - the officeLocation value to set.

Returns:

the MicrosoftGraphPhysicalOfficeAddress object itself.

withPostalCode

public MicrosoftGraphPhysicalOfficeAddress withPostalCode(String postalCode)

Set the postalCode property: The postal code.

Parameters:

postalCode - the postalCode value to set.

Returns:

the MicrosoftGraphPhysicalOfficeAddress object itself.

withState

public MicrosoftGraphPhysicalOfficeAddress withState(String state)

Set the state property: The state.

Parameters:

state - the state value to set.

Returns:

the MicrosoftGraphPhysicalOfficeAddress object itself.

withStreet

public MicrosoftGraphPhysicalOfficeAddress withStreet(String street)

Set the street property: The street.

Parameters:

street - the street value to set.

Returns:

the MicrosoftGraphPhysicalOfficeAddress object itself.

Applies to