com.amazonaws.services.redshift.model
Class Event

java.lang.Object
  extended by com.amazonaws.services.redshift.model.Event
All Implemented Interfaces:
Serializable

public class Event
extends Object
implements Serializable

Describes an event.

See Also:
Serialized Form

Constructor Summary
Event()
           
 
Method Summary
 boolean equals(Object obj)
           
 Date getDate()
          The date and time of the event.
 List<String> getEventCategories()
          A list of the event categories.
 String getEventId()
          The identifier of the event.
 String getMessage()
          The text of this event.
 String getSeverity()
          The severity of the event.
 String getSourceIdentifier()
          The identifier for the source of the event.
 String getSourceType()
          The source type for this event.
 int hashCode()
           
 void setDate(Date date)
          The date and time of the event.
 void setEventCategories(Collection<String> eventCategories)
          A list of the event categories.
 void setEventId(String eventId)
          The identifier of the event.
 void setMessage(String message)
          The text of this event.
 void setSeverity(String severity)
          The severity of the event.
 void setSourceIdentifier(String sourceIdentifier)
          The identifier for the source of the event.
 void setSourceType(SourceType sourceType)
          The source type for this event.
 void setSourceType(String sourceType)
          The source type for this event.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Event withDate(Date date)
          The date and time of the event.
 Event withEventCategories(Collection<String> eventCategories)
          A list of the event categories.
 Event withEventCategories(String... eventCategories)
          A list of the event categories.
 Event withEventId(String eventId)
          The identifier of the event.
 Event withMessage(String message)
          The text of this event.
 Event withSeverity(String severity)
          The severity of the event.
 Event withSourceIdentifier(String sourceIdentifier)
          The identifier for the source of the event.
 Event withSourceType(SourceType sourceType)
          The source type for this event.
 Event withSourceType(String sourceType)
          The source type for this event.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Method Detail

getSourceIdentifier

public String getSourceIdentifier()
The identifier for the source of the event.

Returns:
The identifier for the source of the event.

setSourceIdentifier

public void setSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.

Parameters:
sourceIdentifier - The identifier for the source of the event.

withSourceIdentifier

public Event withSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sourceIdentifier - The identifier for the source of the event.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceType

public String getSourceType()
The source type for this event.

Constraints:
Allowed Values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot

Returns:
The source type for this event.
See Also:
SourceType

setSourceType

public void setSourceType(String sourceType)
The source type for this event.

Constraints:
Allowed Values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot

Parameters:
sourceType - The source type for this event.
See Also:
SourceType

withSourceType

public Event withSourceType(String sourceType)
The source type for this event.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot

Parameters:
sourceType - The source type for this event.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
SourceType

setSourceType

public void setSourceType(SourceType sourceType)
The source type for this event.

Constraints:
Allowed Values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot

Parameters:
sourceType - The source type for this event.
See Also:
SourceType

withSourceType

public Event withSourceType(SourceType sourceType)
The source type for this event.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot

Parameters:
sourceType - The source type for this event.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
SourceType

getMessage

public String getMessage()
The text of this event.

Returns:
The text of this event.

setMessage

public void setMessage(String message)
The text of this event.

Parameters:
message - The text of this event.

withMessage

public Event withMessage(String message)
The text of this event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
message - The text of this event.
Returns:
A reference to this updated object so that method calls can be chained together.

getEventCategories

public List<String> getEventCategories()
A list of the event categories.

Returns:
A list of the event categories.

setEventCategories

public void setEventCategories(Collection<String> eventCategories)
A list of the event categories.

Parameters:
eventCategories - A list of the event categories.

withEventCategories

public Event withEventCategories(String... eventCategories)
A list of the event categories.

Returns a reference to this object so that method calls can be chained together.

Parameters:
eventCategories - A list of the event categories.
Returns:
A reference to this updated object so that method calls can be chained together.

withEventCategories

public Event withEventCategories(Collection<String> eventCategories)
A list of the event categories.

Returns a reference to this object so that method calls can be chained together.

Parameters:
eventCategories - A list of the event categories.
Returns:
A reference to this updated object so that method calls can be chained together.

getSeverity

public String getSeverity()
The severity of the event.

Values: ERROR, INFO

Returns:
The severity of the event.

Values: ERROR, INFO


setSeverity

public void setSeverity(String severity)
The severity of the event.

Values: ERROR, INFO

Parameters:
severity - The severity of the event.

Values: ERROR, INFO


withSeverity

public Event withSeverity(String severity)
The severity of the event.

Values: ERROR, INFO

Returns a reference to this object so that method calls can be chained together.

Parameters:
severity - The severity of the event.

Values: ERROR, INFO

Returns:
A reference to this updated object so that method calls can be chained together.

getDate

public Date getDate()
The date and time of the event.

Returns:
The date and time of the event.

setDate

public void setDate(Date date)
The date and time of the event.

Parameters:
date - The date and time of the event.

withDate

public Event withDate(Date date)
The date and time of the event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
date - The date and time of the event.
Returns:
A reference to this updated object so that method calls can be chained together.

getEventId

public String getEventId()
The identifier of the event.

Returns:
The identifier of the event.

setEventId

public void setEventId(String eventId)
The identifier of the event.

Parameters:
eventId - The identifier of the event.

withEventId

public Event withEventId(String eventId)
The identifier of the event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
eventId - The identifier of the event.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.