Package com.launchdarkly.api.model
Class CreateAnnouncementBody
- java.lang.Object
-
- com.launchdarkly.api.model.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.ObjectCreate announcement request body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateAnnouncementBody.CustomTypeAdapterFactorystatic classCreateAnnouncementBody.SeverityEnumThe severity of the announcement
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_END_TIMEstatic java.lang.StringSERIALIZED_NAME_IS_DISMISSIBLEstatic java.lang.StringSERIALIZED_NAME_MESSAGEstatic java.lang.StringSERIALIZED_NAME_SEVERITYstatic java.lang.StringSERIALIZED_NAME_START_TIMEstatic java.lang.StringSERIALIZED_NAME_TITLE
-
Constructor Summary
Constructors Constructor Description CreateAnnouncementBody()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAnnouncementBodyendTime(java.lang.Long endTime)booleanequals(java.lang.Object o)static CreateAnnouncementBodyfromJson(java.lang.String jsonString)Create an instance of CreateAnnouncementBody given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.LonggetEndTime()The end time of the announcement.java.lang.BooleangetIsDismissible()true if the announcement is dismissiblejava.lang.StringgetMessage()The message of the announcementCreateAnnouncementBody.SeverityEnumgetSeverity()The severity of the announcementjava.lang.LonggetStartTime()The start time of the announcement.java.lang.StringgetTitle()The title of the announcementinthashCode()CreateAnnouncementBodyisDismissible(java.lang.Boolean isDismissible)CreateAnnouncementBodymessage(java.lang.String message)CreateAnnouncementBodyputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.voidsetEndTime(java.lang.Long endTime)voidsetIsDismissible(java.lang.Boolean isDismissible)voidsetMessage(java.lang.String message)voidsetSeverity(CreateAnnouncementBody.SeverityEnum severity)voidsetStartTime(java.lang.Long startTime)voidsetTitle(java.lang.String title)CreateAnnouncementBodyseverity(CreateAnnouncementBody.SeverityEnum severity)CreateAnnouncementBodystartTime(java.lang.Long startTime)CreateAnnouncementBodytitle(java.lang.String title)java.lang.StringtoJson()Convert an instance of CreateAnnouncementBody to an JSON stringjava.lang.StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
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
-
-
Method Detail
-
isDismissible
public CreateAnnouncementBody isDismissible(@Nonnull java.lang.Boolean isDismissible)
-
getIsDismissible
@Nonnull public java.lang.Boolean getIsDismissible()
true if the announcement is dismissible- Returns:
- isDismissible
-
setIsDismissible
public void setIsDismissible(@Nonnull java.lang.Boolean isDismissible)
-
title
public CreateAnnouncementBody title(@Nonnull java.lang.String title)
-
getTitle
@Nonnull public java.lang.String getTitle()
The title of the announcement- Returns:
- title
-
setTitle
public void setTitle(@Nonnull java.lang.String title)
-
message
public CreateAnnouncementBody message(@Nonnull java.lang.String message)
-
getMessage
@Nonnull public java.lang.String getMessage()
The message of the announcement- Returns:
- message
-
setMessage
public void setMessage(@Nonnull java.lang.String message)
-
startTime
public CreateAnnouncementBody startTime(@Nonnull java.lang.Long startTime)
-
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)
-
endTime
public CreateAnnouncementBody endTime(@Nullable java.lang.Long endTime)
-
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)
-
severity
public CreateAnnouncementBody severity(@Nonnull CreateAnnouncementBody.SeverityEnum severity)
-
getSeverity
@Nonnull public CreateAnnouncementBody.SeverityEnum getSeverity()
The severity of the announcement- Returns:
- severity
-
setSeverity
public void setSeverity(@Nonnull CreateAnnouncementBody.SeverityEnum severity)
-
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 propertyvalue- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates 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
-
-