@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Update extends Object implements Serializable, Cloneable, StructuredPojo
An object representing an asynchronous update.
Constructor and Description |
---|
Update() |
Modifier and Type | Method and Description |
---|---|
Update |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The Unix epoch timestamp in seconds for when the update was created.
|
List<ErrorDetail> |
getErrors()
Any errors associated with a
Failed update. |
String |
getId()
A UUID that is used to track the update.
|
List<UpdateParam> |
getParams()
A key-value map that contains the parameters associated with the update.
|
String |
getStatus()
The current status of the update.
|
String |
getType()
The type of the update.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the update was created.
|
void |
setErrors(Collection<ErrorDetail> errors)
Any errors associated with a
Failed update. |
void |
setId(String id)
A UUID that is used to track the update.
|
void |
setParams(Collection<UpdateParam> params)
A key-value map that contains the parameters associated with the update.
|
void |
setStatus(String status)
The current status of the update.
|
void |
setType(String type)
The type of the update.
|
String |
toString()
Returns a string representation of this object.
|
Update |
withCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the update was created.
|
Update |
withErrors(Collection<ErrorDetail> errors)
Any errors associated with a
Failed update. |
Update |
withErrors(ErrorDetail... errors)
Any errors associated with a
Failed update. |
Update |
withId(String id)
A UUID that is used to track the update.
|
Update |
withParams(Collection<UpdateParam> params)
A key-value map that contains the parameters associated with the update.
|
Update |
withParams(UpdateParam... params)
A key-value map that contains the parameters associated with the update.
|
Update |
withStatus(String status)
The current status of the update.
|
Update |
withStatus(UpdateStatus status)
The current status of the update.
|
Update |
withType(String type)
The type of the update.
|
Update |
withType(UpdateType type)
The type of the update.
|
public void setId(String id)
A UUID that is used to track the update.
id
- A UUID that is used to track the update.public String getId()
A UUID that is used to track the update.
public Update withId(String id)
A UUID that is used to track the update.
id
- A UUID that is used to track the update.public void setStatus(String status)
The current status of the update.
status
- The current status of the update.UpdateStatus
public String getStatus()
The current status of the update.
UpdateStatus
public Update withStatus(String status)
The current status of the update.
status
- The current status of the update.UpdateStatus
public Update withStatus(UpdateStatus status)
The current status of the update.
status
- The current status of the update.UpdateStatus
public void setType(String type)
The type of the update.
type
- The type of the update.UpdateType
public String getType()
The type of the update.
UpdateType
public Update withType(String type)
The type of the update.
type
- The type of the update.UpdateType
public Update withType(UpdateType type)
The type of the update.
type
- The type of the update.UpdateType
public List<UpdateParam> getParams()
A key-value map that contains the parameters associated with the update.
public void setParams(Collection<UpdateParam> params)
A key-value map that contains the parameters associated with the update.
params
- A key-value map that contains the parameters associated with the update.public Update withParams(UpdateParam... params)
A key-value map that contains the parameters associated with the update.
NOTE: This method appends the values to the existing list (if any). Use
setParams(java.util.Collection)
or withParams(java.util.Collection)
if you want to override the
existing values.
params
- A key-value map that contains the parameters associated with the update.public Update withParams(Collection<UpdateParam> params)
A key-value map that contains the parameters associated with the update.
params
- A key-value map that contains the parameters associated with the update.public void setCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the update was created.
createdAt
- The Unix epoch timestamp in seconds for when the update was created.public Date getCreatedAt()
The Unix epoch timestamp in seconds for when the update was created.
public Update withCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the update was created.
createdAt
- The Unix epoch timestamp in seconds for when the update was created.public List<ErrorDetail> getErrors()
Any errors associated with a Failed
update.
Failed
update.public void setErrors(Collection<ErrorDetail> errors)
Any errors associated with a Failed
update.
errors
- Any errors associated with a Failed
update.public Update withErrors(ErrorDetail... errors)
Any errors associated with a Failed
update.
NOTE: This method appends the values to the existing list (if any). Use
setErrors(java.util.Collection)
or withErrors(java.util.Collection)
if you want to override the
existing values.
errors
- Any errors associated with a Failed
update.public Update withErrors(Collection<ErrorDetail> errors)
Any errors associated with a Failed
update.
errors
- Any errors associated with a Failed
update.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.