Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticache.model
Class Event

java.lang.Object
  extended by com.amazonaws.services.elasticache.model.Event

public class Event
extends Object

An event represents something interesting that has happened in the system.


Constructor Summary
Event()
          Default constructor for a new Event object.
 
Method Summary
 boolean equals(Object obj)
           
 Date getDate()
          Specifies the date and time of the event.
 String getMessage()
          Provides the text of this event.
 String getSourceIdentifier()
          Provides the identifier for the source of the event.
 String getSourceType()
          Specifies the source type for this event.
 int hashCode()
           
 void setDate(Date date)
          Specifies the date and time of the event.
 void setMessage(String message)
          Provides the text of this event.
 void setSourceIdentifier(String sourceIdentifier)
          Provides the identifier for the source of the event.
 void setSourceType(SourceType sourceType)
          Specifies the source type for this event.
 void setSourceType(String sourceType)
          Specifies the source type for this event.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Event withDate(Date date)
          Specifies the date and time of the event.
 Event withMessage(String message)
          Provides the text of this event.
 Event withSourceIdentifier(String sourceIdentifier)
          Provides the identifier for the source of the event.
 Event withSourceType(SourceType sourceType)
          Specifies the source type for this event.
 Event withSourceType(String sourceType)
          Specifies the source type for this event.
 
Methods inherited from class java.lang.Object
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()
Provides the identifier for the source of the event.

Returns:
Provides the identifier for the source of the event.

setSourceIdentifier

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

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

withSourceIdentifier

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

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

Parameters:
sourceIdentifier - Provides 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()
Specifies the source type for this event.

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

Returns:
Specifies the source type for this event.
See Also:
SourceType

setSourceType

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

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

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

withSourceType

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

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

Parameters:
sourceType - Specifies 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)
Specifies the source type for this event.

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

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

withSourceType

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

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

Parameters:
sourceType - Specifies 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()
Provides the text of this event.

Returns:
Provides the text of this event.

setMessage

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

Parameters:
message - Provides the text of this event.

withMessage

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

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

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

getDate

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

Returns:
Specifies the date and time of the event.

setDate

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

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

withDate

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

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

Parameters:
date - Specifies the date and time 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 © 2010 Amazon Web Services, Inc. All Rights Reserved.