SmtpUsernameResourceInner Class

public final class SmtpUsernameResourceInner
extends ProxyResource

The object describing the smtp username resource.

Constructor Summary

Constructor Description
SmtpUsernameResourceInner()

Creates an instance of SmtpUsernameResourceInner class.

Method Summary

Modifier and Type Method and Description
String entraApplicationId()

Get the entraApplicationId property: The application Id for the linked Entra Application.

static SmtpUsernameResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SmtpUsernameResourceInner 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.

SystemData systemData()

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

String tenantId()

Get the tenantId property: The tenant of the linked Entra Application.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String username()

Get the username property: The SMTP username.

void validate()

Validates the instance.

SmtpUsernameResourceInner withEntraApplicationId(String entraApplicationId)

Set the entraApplicationId property: The application Id for the linked Entra Application.

SmtpUsernameResourceInner withTenantId(String tenantId)

Set the tenantId property: The tenant of the linked Entra Application.

SmtpUsernameResourceInner withUsername(String username)

Set the username property: The SMTP username.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SmtpUsernameResourceInner

public SmtpUsernameResourceInner()

Creates an instance of SmtpUsernameResourceInner class.

Method Details

entraApplicationId

public String entraApplicationId()

Get the entraApplicationId property: The application Id for the linked Entra Application.

Returns:

the entraApplicationId value.

fromJson

public static SmtpUsernameResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SmtpUsernameResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SmtpUsernameResourceInner 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:

SmtpUsernameResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SmtpUsernameResourceInner.name()

Returns:

the name value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

tenantId

public String tenantId()

Get the tenantId property: The tenant of the linked Entra Application.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SmtpUsernameResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SmtpUsernameResourceInner.type()

Returns:

the type value.

username

public String username()

Get the username property: The SMTP username. Could be free form or in the email address format.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withEntraApplicationId

public SmtpUsernameResourceInner withEntraApplicationId(String entraApplicationId)

Set the entraApplicationId property: The application Id for the linked Entra Application.

Parameters:

entraApplicationId - the entraApplicationId value to set.

Returns:

the SmtpUsernameResourceInner object itself.

withTenantId

public SmtpUsernameResourceInner withTenantId(String tenantId)

Set the tenantId property: The tenant of the linked Entra Application.

Parameters:

tenantId - the tenantId value to set.

Returns:

the SmtpUsernameResourceInner object itself.

withUsername

public SmtpUsernameResourceInner withUsername(String username)

Set the username property: The SMTP username. Could be free form or in the email address format.

Parameters:

username - the username value to set.

Returns:

the SmtpUsernameResourceInner object itself.

Applies to