@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RepositorySyncAttempt extends Object implements Serializable, Cloneable, StructuredPojo
Detail data for a repository sync attempt activated by a push to a repository.
Constructor and Description |
---|
RepositorySyncAttempt() |
Modifier and Type | Method and Description |
---|---|
RepositorySyncAttempt |
clone() |
boolean |
equals(Object obj) |
List<RepositorySyncEvent> |
getEvents()
Detail data for sync attempt events.
|
Date |
getStartedAt()
The time when the sync attempt started.
|
String |
getStatus()
The sync attempt status.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEvents(Collection<RepositorySyncEvent> events)
Detail data for sync attempt events.
|
void |
setStartedAt(Date startedAt)
The time when the sync attempt started.
|
void |
setStatus(String status)
The sync attempt status.
|
String |
toString()
Returns a string representation of this object.
|
RepositorySyncAttempt |
withEvents(Collection<RepositorySyncEvent> events)
Detail data for sync attempt events.
|
RepositorySyncAttempt |
withEvents(RepositorySyncEvent... events)
Detail data for sync attempt events.
|
RepositorySyncAttempt |
withStartedAt(Date startedAt)
The time when the sync attempt started.
|
RepositorySyncAttempt |
withStatus(RepositorySyncStatus status)
The sync attempt status.
|
RepositorySyncAttempt |
withStatus(String status)
The sync attempt status.
|
public List<RepositorySyncEvent> getEvents()
Detail data for sync attempt events.
public void setEvents(Collection<RepositorySyncEvent> events)
Detail data for sync attempt events.
events
- Detail data for sync attempt events.public RepositorySyncAttempt withEvents(RepositorySyncEvent... events)
Detail data for sync attempt events.
NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection)
or withEvents(java.util.Collection)
if you want to override the
existing values.
events
- Detail data for sync attempt events.public RepositorySyncAttempt withEvents(Collection<RepositorySyncEvent> events)
Detail data for sync attempt events.
events
- Detail data for sync attempt events.public void setStartedAt(Date startedAt)
The time when the sync attempt started.
startedAt
- The time when the sync attempt started.public Date getStartedAt()
The time when the sync attempt started.
public RepositorySyncAttempt withStartedAt(Date startedAt)
The time when the sync attempt started.
startedAt
- The time when the sync attempt started.public void setStatus(String status)
The sync attempt status.
status
- The sync attempt status.RepositorySyncStatus
public String getStatus()
The sync attempt status.
RepositorySyncStatus
public RepositorySyncAttempt withStatus(String status)
The sync attempt status.
status
- The sync attempt status.RepositorySyncStatus
public RepositorySyncAttempt withStatus(RepositorySyncStatus status)
The sync attempt status.
status
- The sync attempt status.RepositorySyncStatus
public String toString()
toString
in class Object
Object.toString()
public RepositorySyncAttempt clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.