Did this page help you?

   Yes   No   Tell us about it...

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.
 String getMessage()
          The text of this 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 setMessage(String message)
          The text of this 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 withMessage(String message)
          The text of this 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
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.

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.

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.