Class EventSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.model.EventSummary.Builder
-
- Enclosing class:
- EventSummary
public static class EventSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSummarybuild()EventSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment.EventSummary.Buildercopy(EventSummary model)EventSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.EventSummary.BuildereventSummary(String eventSummary)Summary of the event.EventSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.EventSummary.Builderid(String id)The OCID of the event.EventSummary.BuilderisManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)Indicates whether the event occurred on a resource that is managed by the Autonomous Linux service.EventSummary.BuilderlifecycleDetails(String lifecycleDetails)Describes the current state of the event in more detail.EventSummary.BuilderlifecycleState(Event.LifecycleState lifecycleState)The current state of the event.EventSummary.BuilderresourceId(String resourceId)The OCID of the managed instance or resource where the event occurred.EventSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.EventSummary.BuildertimeCreated(Date timeCreated)The date and time that the event was created (in RFC 3339 format).EventSummary.BuildertimeOccurred(Date timeOccurred)The date and time that the event occurred (in RFC 3339 format).EventSummary.BuildertimeUpdated(Date timeUpdated)The date and time that the event was updated (in RFC 3339 format).EventSummary.Buildertype(EventType type)Type of event.
-
-
-
Method Detail
-
id
public EventSummary.Builder id(String id)
The OCID of the event.- Parameters:
id- the value to set- Returns:
- this builder
-
eventSummary
public EventSummary.Builder eventSummary(String eventSummary)
Summary of the event.- Parameters:
eventSummary- the value to set- Returns:
- this builder
-
compartmentId
public EventSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
type
public EventSummary.Builder type(EventType type)
Type of event.- Parameters:
type- the value to set- Returns:
- this builder
-
resourceId
public EventSummary.Builder resourceId(String resourceId)
The OCID of the managed instance or resource where the event occurred.- Parameters:
resourceId- the value to set- Returns:
- this builder
-
timeCreated
public EventSummary.Builder timeCreated(Date timeCreated)
The date and time that the event was created (in RFC 3339 format).Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public EventSummary.Builder timeUpdated(Date timeUpdated)
The date and time that the event was updated (in RFC 3339 format).Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
timeOccurred
public EventSummary.Builder timeOccurred(Date timeOccurred)
The date and time that the event occurred (in RFC 3339 format).Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeOccurred- the value to set- Returns:
- this builder
-
lifecycleState
public EventSummary.Builder lifecycleState(Event.LifecycleState lifecycleState)
The current state of the event.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public EventSummary.Builder lifecycleDetails(String lifecycleDetails)
Describes the current state of the event in more detail.For example, the message can provide actionable information for a resource in the ‘FAILED’ state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
isManagedByAutonomousLinux
public EventSummary.Builder isManagedByAutonomousLinux(Boolean isManagedByAutonomousLinux)
Indicates whether the event occurred on a resource that is managed by the Autonomous Linux service.- Parameters:
isManagedByAutonomousLinux- the value to set- Returns:
- this builder
-
freeformTags
public EventSummary.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public EventSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public EventSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public EventSummary build()
-
copy
public EventSummary.Builder copy(EventSummary model)
-
-