Class CreateAnnouncementBody


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2026-03-05T10:45:26.516033Z[Etc/UTC]",
               comments="Generator version: 7.18.0")
    public class CreateAnnouncementBody
    extends java.lang.Object
    Create announcement request body
    • Field Detail

      • SERIALIZED_NAME_IS_DISMISSIBLE

        public static final java.lang.String SERIALIZED_NAME_IS_DISMISSIBLE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_TITLE

        public static final java.lang.String SERIALIZED_NAME_TITLE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_MESSAGE

        public static final java.lang.String SERIALIZED_NAME_MESSAGE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_START_TIME

        public static final java.lang.String SERIALIZED_NAME_START_TIME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_END_TIME

        public static final java.lang.String SERIALIZED_NAME_END_TIME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_SEVERITY

        public static final java.lang.String SERIALIZED_NAME_SEVERITY
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • CreateAnnouncementBody

        public CreateAnnouncementBody()
    • Method Detail

      • getIsDismissible

        @Nonnull
        public java.lang.Boolean getIsDismissible()
        true if the announcement is dismissible
        Returns:
        isDismissible
      • setIsDismissible

        public void setIsDismissible​(@Nonnull
                                     java.lang.Boolean isDismissible)
      • getTitle

        @Nonnull
        public java.lang.String getTitle()
        The title of the announcement
        Returns:
        title
      • setTitle

        public void setTitle​(@Nonnull
                             java.lang.String title)
      • getMessage

        @Nonnull
        public java.lang.String getMessage()
        The message of the announcement
        Returns:
        message
      • setMessage

        public void setMessage​(@Nonnull
                               java.lang.String message)
      • getStartTime

        @Nonnull
        public java.lang.Long getStartTime()
        The start time of the announcement. This is a Unix timestamp in milliseconds.
        Returns:
        startTime
      • setStartTime

        public void setStartTime​(@Nonnull
                                 java.lang.Long startTime)
      • getEndTime

        @Nullable
        public java.lang.Long getEndTime()
        The end time of the announcement. This is a Unix timestamp in milliseconds.
        Returns:
        endTime
      • setEndTime

        public void setEndTime​(@Nullable
                               java.lang.Long endTime)
      • putAdditionalProperty

        public CreateAnnouncementBody putAdditionalProperty​(java.lang.String key,
                                                            java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the CreateAnnouncementBody instance itself
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

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

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

        public java.lang.String toJson()
        Convert an instance of CreateAnnouncementBody to an JSON string
        Returns:
        JSON string