SenderUsernameResourceInner Class

public final class SenderUsernameResourceInner
extends ProxyResource

A class representing a SenderUsername resource.

Constructor Summary

Constructor Description
SenderUsernameResourceInner()

Creates an instance of SenderUsernameResourceInner class.

Method Summary

Modifier and Type Method and Description
String dataLocation()

Get the dataLocation property: The location where the SenderUsername resource data is stored at rest.

String displayName()

Get the displayName property: The display name for the senderUsername.

static SenderUsernameResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SenderUsernameResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String username()

Get the username property: A sender senderUsername to be used when sending emails.

void validate()

Validates the instance.

SenderUsernameResourceInner withDisplayName(String displayName)

Set the displayName property: The display name for the senderUsername.

SenderUsernameResourceInner withUsername(String username)

Set the username property: A sender senderUsername to be used when sending emails.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SenderUsernameResourceInner

public SenderUsernameResourceInner()

Creates an instance of SenderUsernameResourceInner class.

Method Details

dataLocation

public String dataLocation()

Get the dataLocation property: The location where the SenderUsername resource data is stored at rest.

Returns:

the dataLocation value.

displayName

public String displayName()

Get the displayName property: The display name for the senderUsername.

Returns:

the displayName value.

fromJson

public static SenderUsernameResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SenderUsernameResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SenderUsernameResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SenderUsernameResourceInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource. Unknown is the default state for Communication Services.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SenderUsernameResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SenderUsernameResourceInner.type()

Returns:

the type value.

username

public String username()

Get the username property: A sender senderUsername to be used when sending emails.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withDisplayName

public SenderUsernameResourceInner withDisplayName(String displayName)

Set the displayName property: The display name for the senderUsername.

Parameters:

displayName - the displayName value to set.

Returns:

the SenderUsernameResourceInner object itself.

withUsername

public SenderUsernameResourceInner withUsername(String username)

Set the username property: A sender senderUsername to be used when sending emails.

Parameters:

username - the username value to set.

Returns:

the SenderUsernameResourceInner object itself.

Applies to