Package com.amazonaws.services.ec2.model
Class VolumeStatusEvent
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VolumeStatusEvent
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VolumeStatusEvent extends Object implements Serializable, Cloneable
Describes a volume status event.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolumeStatusEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeStatusEvent
clone()
boolean
equals(Object obj)
String
getDescription()
A description of the event.String
getEventId()
The ID of this event.String
getEventType()
The type of this event.Date
getNotAfter()
The latest end time of the event.Date
getNotBefore()
The earliest start time of the event.int
hashCode()
void
setDescription(String description)
A description of the event.void
setEventId(String eventId)
The ID of this event.void
setEventType(String eventType)
The type of this event.void
setNotAfter(Date notAfter)
The latest end time of the event.void
setNotBefore(Date notBefore)
The earliest start time of the event.String
toString()
Returns a string representation of this object; useful for testing and debugging.VolumeStatusEvent
withDescription(String description)
A description of the event.VolumeStatusEvent
withEventId(String eventId)
The ID of this event.VolumeStatusEvent
withEventType(String eventType)
The type of this event.VolumeStatusEvent
withNotAfter(Date notAfter)
The latest end time of the event.VolumeStatusEvent
withNotBefore(Date notBefore)
The earliest start time of the event.
-
-
-
Method Detail
-
setEventType
public void setEventType(String eventType)
The type of this event.
- Parameters:
eventType
- The type of this event.
-
getEventType
public String getEventType()
The type of this event.
- Returns:
- The type of this event.
-
withEventType
public VolumeStatusEvent withEventType(String eventType)
The type of this event.
- Parameters:
eventType
- The type of this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description of the event.
- Parameters:
description
- A description of the event.
-
getDescription
public String getDescription()
A description of the event.
- Returns:
- A description of the event.
-
withDescription
public VolumeStatusEvent withDescription(String description)
A description of the event.
- Parameters:
description
- A description of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNotBefore
public void setNotBefore(Date notBefore)
The earliest start time of the event.
- Parameters:
notBefore
- The earliest start time of the event.
-
getNotBefore
public Date getNotBefore()
The earliest start time of the event.
- Returns:
- The earliest start time of the event.
-
withNotBefore
public VolumeStatusEvent withNotBefore(Date notBefore)
The earliest start time of the event.
- Parameters:
notBefore
- The earliest start time of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNotAfter
public void setNotAfter(Date notAfter)
The latest end time of the event.
- Parameters:
notAfter
- The latest end time of the event.
-
getNotAfter
public Date getNotAfter()
The latest end time of the event.
- Returns:
- The latest end time of the event.
-
withNotAfter
public VolumeStatusEvent withNotAfter(Date notAfter)
The latest end time of the event.
- Parameters:
notAfter
- The latest end time of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEventId
public void setEventId(String eventId)
The ID of this event.
- Parameters:
eventId
- The ID of this event.
-
getEventId
public String getEventId()
The ID of this event.
- Returns:
- The ID of this event.
-
withEventId
public VolumeStatusEvent withEventId(String eventId)
The ID of this event.
- Parameters:
eventId
- The ID of this event.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VolumeStatusEvent clone()
-
-