CommunicationDetailsInner Class

public final class CommunicationDetailsInner
extends ProxyResource

Object that represents a Communication resource.

Constructor Summary

Constructor Description
CommunicationDetailsInner()

Creates an instance of CommunicationDetailsInner class.

Method Summary

Modifier and Type Method and Description
String body()

Get the body property: Body of the communication.

CommunicationDirection communicationDirection()

Get the communicationDirection property: Direction of communication.

CommunicationType communicationType()

Get the communicationType property: Communication type.

OffsetDateTime createdDate()

Get the createdDate property: Time in UTC (ISO 8601 format) when the communication was created.

static CommunicationDetailsInner fromJson(JsonReader jsonReader)

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

String sender()

Get the sender property: Email address of the sender.

String subject()

Get the subject property: Subject of the communication.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CommunicationDetailsInner withBody(String body)

Set the body property: Body of the communication.

CommunicationDetailsInner withSender(String sender)

Set the sender property: Email address of the sender.

CommunicationDetailsInner withSubject(String subject)

Set the subject property: Subject of the communication.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CommunicationDetailsInner

public CommunicationDetailsInner()

Creates an instance of CommunicationDetailsInner class.

Method Details

body

public String body()

Get the body property: Body of the communication.

Returns:

the body value.

communicationDirection

public CommunicationDirection communicationDirection()

Get the communicationDirection property: Direction of communication.

Returns:

the communicationDirection value.

communicationType

public CommunicationType communicationType()

Get the communicationType property: Communication type.

Returns:

the communicationType value.

createdDate

public OffsetDateTime createdDate()

Get the createdDate property: Time in UTC (ISO 8601 format) when the communication was created.

Returns:

the createdDate value.

fromJson

public static CommunicationDetailsInner fromJson(JsonReader jsonReader)

Reads an instance of CommunicationDetailsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

CommunicationDetailsInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CommunicationDetailsInner.name()

Returns:

the name value.

sender

public String sender()

Get the sender property: Email address of the sender. This property is required if called by a service principal.

Returns:

the sender value.

subject

public String subject()

Get the subject property: Subject of the communication.

Returns:

the subject value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CommunicationDetailsInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CommunicationDetailsInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withBody

public CommunicationDetailsInner withBody(String body)

Set the body property: Body of the communication.

Parameters:

body - the body value to set.

Returns:

the CommunicationDetailsInner object itself.

withSender

public CommunicationDetailsInner withSender(String sender)

Set the sender property: Email address of the sender. This property is required if called by a service principal.

Parameters:

sender - the sender value to set.

Returns:

the CommunicationDetailsInner object itself.

withSubject

public CommunicationDetailsInner withSubject(String subject)

Set the subject property: Subject of the communication.

Parameters:

subject - the subject value to set.

Returns:

the CommunicationDetailsInner object itself.

Applies to