Share via


MicrosoftGraphEmailAddress Class

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

Implements

public final class MicrosoftGraphEmailAddress
implements JsonSerializable<MicrosoftGraphEmailAddress>

Represents an email address.

Constructor Summary

Constructor Description
MicrosoftGraphEmailAddress()

Creates an instance of MicrosoftGraphEmailAddress class.

Method Summary

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

Get the additionalProperties property: emailAddress.

String address()

Get the address property: The email address of the person or entity.

static MicrosoftGraphEmailAddress fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphEmailAddress from the JsonReader.

String name()

Get the name property: The display name of the person or entity.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphEmailAddress withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: emailAddress.

MicrosoftGraphEmailAddress withAddress(String address)

Set the address property: The email address of the person or entity.

MicrosoftGraphEmailAddress withName(String name)

Set the name property: The display name of the person or entity.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphEmailAddress

public MicrosoftGraphEmailAddress()

Creates an instance of MicrosoftGraphEmailAddress class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: emailAddress.

Returns:

the additionalProperties value.

address

public String address()

Get the address property: The email address of the person or entity.

Returns:

the address value.

fromJson

public static MicrosoftGraphEmailAddress fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphEmailAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphEmailAddress 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 MicrosoftGraphEmailAddress.

name

public String name()

Get the name property: The display name of the person or entity.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphEmailAddress withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: emailAddress.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphEmailAddress object itself.

withAddress

public MicrosoftGraphEmailAddress withAddress(String address)

Set the address property: The email address of the person or entity.

Parameters:

address - the address value to set.

Returns:

the MicrosoftGraphEmailAddress object itself.

withName

public MicrosoftGraphEmailAddress withName(String name)

Set the name property: The display name of the person or entity.

Parameters:

name - the name value to set.

Returns:

the MicrosoftGraphEmailAddress object itself.

Applies to