@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceSyncAttempt extends Object implements Serializable, Cloneable, StructuredPojo
Detail data for a resource sync attempt activated by a push to a repository.
Constructor and Description |
---|
ResourceSyncAttempt() |
Modifier and Type | Method and Description |
---|---|
ResourceSyncAttempt |
clone() |
boolean |
equals(Object obj) |
List<ResourceSyncEvent> |
getEvents()
An array of events with detail data.
|
Revision |
getInitialRevision()
Detail data for the initial repository commit, path and push.
|
Date |
getStartedAt()
The time when the sync attempt started.
|
String |
getStatus()
The status of the sync attempt.
|
String |
getTarget()
The resource that is synced to.
|
Revision |
getTargetRevision()
Detail data for the target revision.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEvents(Collection<ResourceSyncEvent> events)
An array of events with detail data.
|
void |
setInitialRevision(Revision initialRevision)
Detail data for the initial repository commit, path and push.
|
void |
setStartedAt(Date startedAt)
The time when the sync attempt started.
|
void |
setStatus(String status)
The status of the sync attempt.
|
void |
setTarget(String target)
The resource that is synced to.
|
void |
setTargetRevision(Revision targetRevision)
Detail data for the target revision.
|
String |
toString()
Returns a string representation of this object.
|
ResourceSyncAttempt |
withEvents(Collection<ResourceSyncEvent> events)
An array of events with detail data.
|
ResourceSyncAttempt |
withEvents(ResourceSyncEvent... events)
An array of events with detail data.
|
ResourceSyncAttempt |
withInitialRevision(Revision initialRevision)
Detail data for the initial repository commit, path and push.
|
ResourceSyncAttempt |
withStartedAt(Date startedAt)
The time when the sync attempt started.
|
ResourceSyncAttempt |
withStatus(ResourceSyncStatus status)
The status of the sync attempt.
|
ResourceSyncAttempt |
withStatus(String status)
The status of the sync attempt.
|
ResourceSyncAttempt |
withTarget(String target)
The resource that is synced to.
|
ResourceSyncAttempt |
withTargetRevision(Revision targetRevision)
Detail data for the target revision.
|
public List<ResourceSyncEvent> getEvents()
An array of events with detail data.
public void setEvents(Collection<ResourceSyncEvent> events)
An array of events with detail data.
events
- An array of events with detail data.public ResourceSyncAttempt withEvents(ResourceSyncEvent... events)
An array of events with detail data.
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
- An array of events with detail data.public ResourceSyncAttempt withEvents(Collection<ResourceSyncEvent> events)
An array of events with detail data.
events
- An array of events with detail data.public void setInitialRevision(Revision initialRevision)
Detail data for the initial repository commit, path and push.
initialRevision
- Detail data for the initial repository commit, path and push.public Revision getInitialRevision()
Detail data for the initial repository commit, path and push.
public ResourceSyncAttempt withInitialRevision(Revision initialRevision)
Detail data for the initial repository commit, path and push.
initialRevision
- Detail data for the initial repository commit, path and push.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 ResourceSyncAttempt withStartedAt(Date startedAt)
The time when the sync attempt started.
startedAt
- The time when the sync attempt started.public void setStatus(String status)
The status of the sync attempt.
status
- The status of the sync attempt.ResourceSyncStatus
public String getStatus()
The status of the sync attempt.
ResourceSyncStatus
public ResourceSyncAttempt withStatus(String status)
The status of the sync attempt.
status
- The status of the sync attempt.ResourceSyncStatus
public ResourceSyncAttempt withStatus(ResourceSyncStatus status)
The status of the sync attempt.
status
- The status of the sync attempt.ResourceSyncStatus
public void setTarget(String target)
The resource that is synced to.
target
- The resource that is synced to.public String getTarget()
The resource that is synced to.
public ResourceSyncAttempt withTarget(String target)
The resource that is synced to.
target
- The resource that is synced to.public void setTargetRevision(Revision targetRevision)
Detail data for the target revision.
targetRevision
- Detail data for the target revision.public Revision getTargetRevision()
Detail data for the target revision.
public ResourceSyncAttempt withTargetRevision(Revision targetRevision)
Detail data for the target revision.
targetRevision
- Detail data for the target revision.public String toString()
toString
in class Object
Object.toString()
public ResourceSyncAttempt clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.