CommunicationDetailsProperties Class
- java.
lang. Object - com.
azure. resourcemanager. support. fluent. models. CommunicationDetailsProperties
- com.
Implements
public final class CommunicationDetailsProperties
implements JsonSerializable<CommunicationDetailsProperties>
Describes the properties of a communication resource.
Constructor Summary
| Constructor | Description |
|---|---|
| CommunicationDetailsProperties() |
Creates an instance of Communication |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
body()
Get the body property: Body of the communication. |
|
Communication |
communicationDirection()
Get the communication |
|
Communication |
communicationType()
Get the communication |
|
Offset |
createdDate()
Get the created |
|
static
Communication |
fromJson(JsonReader jsonReader)
Reads an instance of Communication |
| String |
sender()
Get the sender property: Email address of the sender. |
| String |
subject()
Get the subject property: Subject of the communication. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Communication |
withBody(String body)
Set the body property: Body of the communication. |
|
Communication |
withSender(String sender)
Set the sender property: Email address of the sender. |
|
Communication |
withSubject(String subject)
Set the subject property: Subject of the communication. |
Methods inherited from java.lang.Object
Constructor Details
CommunicationDetailsProperties
public CommunicationDetailsProperties()
Creates an instance of CommunicationDetailsProperties class.
Method Details
body
public String body()
Get the body property: Body of the communication.
Returns:
communicationDirection
public CommunicationDirection communicationDirection()
Get the communicationDirection property: Direction of communication.
Returns:
communicationType
public CommunicationType communicationType()
Get the communicationType property: Communication type.
Returns:
createdDate
public OffsetDateTime createdDate()
Get the createdDate property: Time in UTC (ISO 8601 format) when the communication was created.
Returns:
fromJson
public static CommunicationDetailsProperties fromJson(JsonReader jsonReader)
Reads an instance of CommunicationDetailsProperties from the JsonReader.
Parameters:
Returns:
Throws:
sender
public String sender()
Get the sender property: Email address of the sender. This property is required if called by a service principal.
Returns:
subject
public String subject()
Get the subject property: Subject of the communication.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBody
public CommunicationDetailsProperties withBody(String body)
Set the body property: Body of the communication.
Parameters:
Returns:
withSender
public CommunicationDetailsProperties withSender(String sender)
Set the sender property: Email address of the sender. This property is required if called by a service principal.
Parameters:
Returns:
withSubject
public CommunicationDetailsProperties withSubject(String subject)
Set the subject property: Subject of the communication.
Parameters:
Returns: