SuppressionListAddressResourceInner Class

public final class SuppressionListAddressResourceInner
extends ProxyResource

A object that represents a SuppressionList record.

Constructor Summary

Constructor Description
SuppressionListAddressResourceInner()

Creates an instance of SuppressionListAddressResourceInner class.

Method Summary

Modifier and Type Method and Description
String dataLocation()

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

String email()

Get the email property: Email address of the recipient.

String firstName()

Get the firstName property: The first name of the email recipient.

static SuppressionListAddressResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SuppressionListAddressResourceInner from the JsonReader.

String id()

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

OffsetDateTime lastModified()

Get the lastModified property: The date the address was last updated in a suppression list.

String lastName()

Get the lastName property: The last name of the email recipient.

String name()

Get the name property: The name of the resource.

String notes()

Get the notes property: An optional property to provide contextual notes or a description for an address.

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.

void validate()

Validates the instance.

SuppressionListAddressResourceInner withEmail(String email)

Set the email property: Email address of the recipient.

SuppressionListAddressResourceInner withFirstName(String firstName)

Set the firstName property: The first name of the email recipient.

SuppressionListAddressResourceInner withLastName(String lastName)

Set the lastName property: The last name of the email recipient.

SuppressionListAddressResourceInner withNotes(String notes)

Set the notes property: An optional property to provide contextual notes or a description for an address.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SuppressionListAddressResourceInner

public SuppressionListAddressResourceInner()

Creates an instance of SuppressionListAddressResourceInner class.

Method Details

dataLocation

public String dataLocation()

Get the dataLocation property: The location where the SuppressionListAddress data is stored at rest. This value is inherited from the parent Domains resource.

Returns:

the dataLocation value.

email

public String email()

Get the email property: Email address of the recipient.

Returns:

the email value.

firstName

public String firstName()

Get the firstName property: The first name of the email recipient.

Returns:

the firstName value.

fromJson

public static SuppressionListAddressResourceInner fromJson(JsonReader jsonReader)

Reads an instance of SuppressionListAddressResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

SuppressionListAddressResourceInner.id()

Returns:

the id value.

lastModified

public OffsetDateTime lastModified()

Get the lastModified property: The date the address was last updated in a suppression list.

Returns:

the lastModified value.

lastName

public String lastName()

Get the lastName property: The last name of the email recipient.

Returns:

the lastName value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SuppressionListAddressResourceInner.name()

Returns:

the name value.

notes

public String notes()

Get the notes property: An optional property to provide contextual notes or a description for an address.

Returns:

the notes 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:

SuppressionListAddressResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SuppressionListAddressResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEmail

public SuppressionListAddressResourceInner withEmail(String email)

Set the email property: Email address of the recipient.

Parameters:

email - the email value to set.

Returns:

the SuppressionListAddressResourceInner object itself.

withFirstName

public SuppressionListAddressResourceInner withFirstName(String firstName)

Set the firstName property: The first name of the email recipient.

Parameters:

firstName - the firstName value to set.

Returns:

the SuppressionListAddressResourceInner object itself.

withLastName

public SuppressionListAddressResourceInner withLastName(String lastName)

Set the lastName property: The last name of the email recipient.

Parameters:

lastName - the lastName value to set.

Returns:

the SuppressionListAddressResourceInner object itself.

withNotes

public SuppressionListAddressResourceInner withNotes(String notes)

Set the notes property: An optional property to provide contextual notes or a description for an address.

Parameters:

notes - the notes value to set.

Returns:

the SuppressionListAddressResourceInner object itself.

Applies to