Class CommunicationDetailsInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.support.fluent.models.CommunicationDetailsInner

public final class CommunicationDetailsInner extends com.azure.core.management.ProxyResource
Object that represents a Communication resource.
  • Constructor Details

    • CommunicationDetailsInner

      public CommunicationDetailsInner()
      Creates an instance of CommunicationDetailsInner class.
  • Method Details

    • communicationType

      public CommunicationType communicationType()
      Get the communicationType property: Communication type.
      Returns:
      the communicationType value.
    • communicationDirection

      public CommunicationDirection communicationDirection()
      Get the communicationDirection property: Direction of communication.
      Returns:
      the communicationDirection 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.
    • 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.
    • subject

      public String subject()
      Get the subject property: Subject of the communication.
      Returns:
      the subject value.
    • 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.
    • body

      public String body()
      Get the body property: Body of the communication.
      Returns:
      the body value.
    • 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.
    • createdDate

      public OffsetDateTime createdDate()
      Get the createdDate property: Time in UTC (ISO 8601 format) when the communication was created.
      Returns:
      the createdDate value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.