Class BaseAnnouncement
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.announcementsservice.model.BaseAnnouncement
-
- Direct Known Subclasses:
Announcement
,AnnouncementSummary
@Generated(value="OracleSDKGenerator", comments="API Version: 0.0.1") public class BaseAnnouncement extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Incident information that forms the basis of an announcement.Avoid entering confidential information.
Note: Objects should always be created or deserialized using theBuilder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theBuilder
, which maintain a set of all explicitly set fields calledBuilder#__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseAnnouncement.AnnouncementType
The type of announcement.static class
BaseAnnouncement.LifecycleState
The current lifecycle state of the announcement.static class
BaseAnnouncement.PlatformType
The platform type that this announcement pertains to.static class
BaseAnnouncement.TimeOneType
The type of a time associated with an initial time value.static class
BaseAnnouncement.TimeTwoType
The type of a time associated with second time value.
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseAnnouncement(String id, String referenceTicketNumber, String summary, String timeOneTitle, BaseAnnouncement.TimeOneType timeOneType, Date timeOneValue, String timeTwoTitle, BaseAnnouncement.TimeTwoType timeTwoType, Date timeTwoValue, List<String> services, List<String> affectedRegions, BaseAnnouncement.AnnouncementType announcementType, BaseAnnouncement.LifecycleState lifecycleState, Boolean isBanner, Date timeCreated, Date timeUpdated, String environmentName, BaseAnnouncement.PlatformType platformType, String chainId)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<String>
getAffectedRegions()
Impacted regions.BaseAnnouncement.AnnouncementType
getAnnouncementType()
The type of announcement.String
getChainId()
The sequence of connected announcements, or announcement chain, that this announcement belongs to.String
getEnvironmentName()
The name of the environment that this announcement pertains to.String
getId()
The OCID of the announcement.Boolean
getIsBanner()
Whether the announcement is displayed as a banner in the console.BaseAnnouncement.LifecycleState
getLifecycleState()
The current lifecycle state of the announcement.BaseAnnouncement.PlatformType
getPlatformType()
The platform type that this announcement pertains to.String
getReferenceTicketNumber()
The reference Jira ticket number.List<String>
getServices()
Impacted Oracle Cloud Infrastructure services.String
getSummary()
A summary of the issue.Date
getTimeCreated()
The date and time the announcement was created, expressed in RFC 3339 timestamp format.String
getTimeOneTitle()
The label associated with an initial time value.BaseAnnouncement.TimeOneType
getTimeOneType()
The type of a time associated with an initial time value.Date
getTimeOneValue()
The actual value of the first time value for the event.String
getTimeTwoTitle()
The label associated with a second time value.BaseAnnouncement.TimeTwoType
getTimeTwoType()
The type of a time associated with second time value.Date
getTimeTwoValue()
The actual value of the second time value.Date
getTimeUpdated()
The date and time the announcement was last updated, expressed in RFC 3339 timestamp format.int
hashCode()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
BaseAnnouncement
@Deprecated @ConstructorProperties({"id","referenceTicketNumber","summary","timeOneTitle","timeOneType","timeOneValue","timeTwoTitle","timeTwoType","timeTwoValue","services","affectedRegions","announcementType","lifecycleState","isBanner","timeCreated","timeUpdated","environmentName","platformType","chainId"}) protected BaseAnnouncement(String id, String referenceTicketNumber, String summary, String timeOneTitle, BaseAnnouncement.TimeOneType timeOneType, Date timeOneValue, String timeTwoTitle, BaseAnnouncement.TimeTwoType timeTwoType, Date timeTwoValue, List<String> services, List<String> affectedRegions, BaseAnnouncement.AnnouncementType announcementType, BaseAnnouncement.LifecycleState lifecycleState, Boolean isBanner, Date timeCreated, Date timeUpdated, String environmentName, BaseAnnouncement.PlatformType platformType, String chainId)
Deprecated.
-
-
Method Detail
-
getId
public String getId()
The OCID of the announcement.- Returns:
- the value
-
getReferenceTicketNumber
public String getReferenceTicketNumber()
The reference Jira ticket number.- Returns:
- the value
-
getSummary
public String getSummary()
A summary of the issue.A summary might appear in the console banner view of the announcement or in an email subject line. Avoid entering confidential information.
- Returns:
- the value
-
getTimeOneTitle
public String getTimeOneTitle()
The label associated with an initial time value.Example: Time Started
- Returns:
- the value
-
getTimeOneType
public BaseAnnouncement.TimeOneType getTimeOneType()
The type of a time associated with an initial time value.If the timeOneTitle attribute is present, then the timeOneTitle attribute contains a label of timeOneType in English. Example: START_TIME
- Returns:
- the value
-
getTimeOneValue
public Date getTimeOneValue()
The actual value of the first time value for the event.Typically, this denotes the time an event started, but the meaning can vary, depending on the announcement type. The timeOneType attribute describes the meaning.
- Returns:
- the value
-
getTimeTwoTitle
public String getTimeTwoTitle()
The label associated with a second time value.Example: Time Ended
- Returns:
- the value
-
getTimeTwoType
public BaseAnnouncement.TimeTwoType getTimeTwoType()
The type of a time associated with second time value.If the timeTwoTitle attribute is present, then the timeTwoTitle attribute contains a label of timeTwoType in English. Example: END_TIME
- Returns:
- the value
-
getTimeTwoValue
public Date getTimeTwoValue()
The actual value of the second time value.Typically, this denotes the time an event ended, but the meaning can vary, depending on the announcement type. The timeTwoType attribute describes the meaning.
- Returns:
- the value
-
getServices
public List<String> getServices()
Impacted Oracle Cloud Infrastructure services.- Returns:
- the value
-
getAnnouncementType
public BaseAnnouncement.AnnouncementType getAnnouncementType()
The type of announcement.An announcement’s type signals its severity.
- Returns:
- the value
-
getLifecycleState
public BaseAnnouncement.LifecycleState getLifecycleState()
The current lifecycle state of the announcement.- Returns:
- the value
-
getIsBanner
public Boolean getIsBanner()
Whether the announcement is displayed as a banner in the console.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the announcement was created, expressed in RFC 3339 timestamp format.Example: 2019-01-01T17:43:01.389+0000
- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
The date and time the announcement was last updated, expressed in RFC 3339 timestamp format.Example: 2019-01-01T17:43:01.389+0000
- Returns:
- the value
-
getEnvironmentName
public String getEnvironmentName()
The name of the environment that this announcement pertains to.- Returns:
- the value
-
getPlatformType
public BaseAnnouncement.PlatformType getPlatformType()
The platform type that this announcement pertains to.- Returns:
- the value
-
getChainId
public String getChainId()
The sequence of connected announcements, or announcement chain, that this announcement belongs to.Related announcements share the same chain ID.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-