com.amazonaws.services.elasticache.model
Class Event

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

public class Event
extends Object
implements Serializable

Represents a single occurrence of something interesting within the system. Some examples of events are creating a cache cluster, adding or removing a cache node, or rebooting a node.

See Also:
Serialized Form

Constructor Summary
Event()
          Default constructor for a new Event object.
 
Method Summary
 boolean equals(Object obj)
           
 Date getDate()
          The date and time when the event occurred.
 String getMessage()
          The text of the event.
 String getSourceIdentifier()
          The identifier for the source of the event.
 String getSourceType()
          Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
 int hashCode()
           
 void setDate(Date date)
          The date and time when the event occurred.
 void setMessage(String message)
          The text of the event.
 void setSourceIdentifier(String sourceIdentifier)
          The identifier for the source of the event.
 void setSourceType(SourceType sourceType)
          Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
 void setSourceType(String sourceType)
          Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Event withDate(Date date)
          The date and time when the event occurred.
 Event withMessage(String message)
          The text of the event.
 Event withSourceIdentifier(String sourceIdentifier)
          The identifier for the source of the event.
 Event withSourceType(SourceType sourceType)
          Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
 Event withSourceType(String sourceType)
          Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Default constructor for a new Event object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getSourceIdentifier

public String getSourceIdentifier()
The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

Returns:
The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

setSourceIdentifier

public void setSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

Parameters:
sourceIdentifier - The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

withSourceIdentifier

public Event withSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

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

Parameters:
sourceIdentifier - The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceType

public String getSourceType()
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group

Returns:
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
See Also:
SourceType

setSourceType

public void setSourceType(String sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group

Parameters:
sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
See Also:
SourceType

withSourceType

public Event withSourceType(String sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

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

Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group

Parameters:
sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
SourceType

setSourceType

public void setSourceType(SourceType sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group

Parameters:
sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
See Also:
SourceType

withSourceType

public Event withSourceType(SourceType sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

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

Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group

Parameters:
sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
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 the event.

Returns:
The text of the event.

setMessage

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

Parameters:
message - The text of the event.

withMessage

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

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

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

getDate

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

Returns:
The date and time when the event occurred.

setDate

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

Parameters:
date - The date and time when the event occurred.

withDate

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

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

Parameters:
date - The date and time when the event occurred.
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.