Class NotificationTarget

java.lang.Object
ai.shipeasy.admin.model.NotificationTarget

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class NotificationTarget extends Object
Delivery target for a notification; `null` = use the project default.
  • Field Details

  • Constructor Details

    • NotificationTarget

      public NotificationTarget()
  • Method Details

    • slackChannel

      public NotificationTarget slackChannel(@Nullable NotificationTargetSlackChannel slackChannel)
    • getSlackChannel

      @Nullable public NotificationTargetSlackChannel getSlackChannel()
      Get slackChannel
      Returns:
      slackChannel
    • setSlackChannel

      public void setSlackChannel(@Nullable NotificationTargetSlackChannel slackChannel)
    • email

      public NotificationTarget email(@Nullable String email)
    • getEmail

      @Nullable public String getEmail()
      Get email
      Returns:
      email
    • setEmail

      public void setEmail(@Nullable String email)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to NotificationTarget
    • fromJson

      public static NotificationTarget fromJson(String jsonString) throws IOException
      Create an instance of NotificationTarget given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of NotificationTarget
      Throws:
      IOException - if the JSON string is invalid with respect to NotificationTarget
    • toJson

      public String toJson()
      Convert an instance of NotificationTarget to an JSON string
      Returns:
      JSON string