public class GenericRevisionInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about an application revision.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
deploymentGroups
The deployment groups for which this is the current target revision.
|
private java.lang.String |
description
A comment about the revision.
|
private java.util.Date |
firstUsedTime
When the revision was first used by AWS CodeDeploy.
|
private java.util.Date |
lastUsedTime
When the revision was last used by AWS CodeDeploy.
|
private java.util.Date |
registerTime
When the revision was registered with AWS CodeDeploy.
|
Constructor and Description |
---|
GenericRevisionInfo() |
Modifier and Type | Method and Description |
---|---|
GenericRevisionInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getDeploymentGroups()
The deployment groups for which this is the current target revision.
|
java.lang.String |
getDescription()
A comment about the revision.
|
java.util.Date |
getFirstUsedTime()
When the revision was first used by AWS CodeDeploy.
|
java.util.Date |
getLastUsedTime()
When the revision was last used by AWS CodeDeploy.
|
java.util.Date |
getRegisterTime()
When the revision was registered with AWS CodeDeploy.
|
int |
hashCode() |
void |
setDeploymentGroups(java.util.Collection<java.lang.String> deploymentGroups)
The deployment groups for which this is the current target revision.
|
void |
setDescription(java.lang.String description)
A comment about the revision.
|
void |
setFirstUsedTime(java.util.Date firstUsedTime)
When the revision was first used by AWS CodeDeploy.
|
void |
setLastUsedTime(java.util.Date lastUsedTime)
When the revision was last used by AWS CodeDeploy.
|
void |
setRegisterTime(java.util.Date registerTime)
When the revision was registered with AWS CodeDeploy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenericRevisionInfo |
withDeploymentGroups(java.util.Collection<java.lang.String> deploymentGroups)
The deployment groups for which this is the current target revision.
|
GenericRevisionInfo |
withDeploymentGroups(java.lang.String... deploymentGroups)
The deployment groups for which this is the current target revision.
|
GenericRevisionInfo |
withDescription(java.lang.String description)
A comment about the revision.
|
GenericRevisionInfo |
withFirstUsedTime(java.util.Date firstUsedTime)
When the revision was first used by AWS CodeDeploy.
|
GenericRevisionInfo |
withLastUsedTime(java.util.Date lastUsedTime)
When the revision was last used by AWS CodeDeploy.
|
GenericRevisionInfo |
withRegisterTime(java.util.Date registerTime)
When the revision was registered with AWS CodeDeploy.
|
private java.lang.String description
A comment about the revision.
private SdkInternalList<java.lang.String> deploymentGroups
The deployment groups for which this is the current target revision.
private java.util.Date firstUsedTime
When the revision was first used by AWS CodeDeploy.
private java.util.Date lastUsedTime
When the revision was last used by AWS CodeDeploy.
private java.util.Date registerTime
When the revision was registered with AWS CodeDeploy.
public void setDescription(java.lang.String description)
A comment about the revision.
description
- A comment about the revision.public java.lang.String getDescription()
A comment about the revision.
public GenericRevisionInfo withDescription(java.lang.String description)
A comment about the revision.
description
- A comment about the revision.public java.util.List<java.lang.String> getDeploymentGroups()
The deployment groups for which this is the current target revision.
public void setDeploymentGroups(java.util.Collection<java.lang.String> deploymentGroups)
The deployment groups for which this is the current target revision.
deploymentGroups
- The deployment groups for which this is the current target
revision.public GenericRevisionInfo withDeploymentGroups(java.lang.String... deploymentGroups)
The deployment groups for which this is the current target revision.
NOTE: This method appends the values to the existing list (if
any). Use setDeploymentGroups(java.util.Collection)
or
withDeploymentGroups(java.util.Collection)
if you want to
override the existing values.
deploymentGroups
- The deployment groups for which this is the current target
revision.public GenericRevisionInfo withDeploymentGroups(java.util.Collection<java.lang.String> deploymentGroups)
The deployment groups for which this is the current target revision.
deploymentGroups
- The deployment groups for which this is the current target
revision.public void setFirstUsedTime(java.util.Date firstUsedTime)
When the revision was first used by AWS CodeDeploy.
firstUsedTime
- When the revision was first used by AWS CodeDeploy.public java.util.Date getFirstUsedTime()
When the revision was first used by AWS CodeDeploy.
public GenericRevisionInfo withFirstUsedTime(java.util.Date firstUsedTime)
When the revision was first used by AWS CodeDeploy.
firstUsedTime
- When the revision was first used by AWS CodeDeploy.public void setLastUsedTime(java.util.Date lastUsedTime)
When the revision was last used by AWS CodeDeploy.
lastUsedTime
- When the revision was last used by AWS CodeDeploy.public java.util.Date getLastUsedTime()
When the revision was last used by AWS CodeDeploy.
public GenericRevisionInfo withLastUsedTime(java.util.Date lastUsedTime)
When the revision was last used by AWS CodeDeploy.
lastUsedTime
- When the revision was last used by AWS CodeDeploy.public void setRegisterTime(java.util.Date registerTime)
When the revision was registered with AWS CodeDeploy.
registerTime
- When the revision was registered with AWS CodeDeploy.public java.util.Date getRegisterTime()
When the revision was registered with AWS CodeDeploy.
public GenericRevisionInfo withRegisterTime(java.util.Date registerTime)
When the revision was registered with AWS CodeDeploy.
registerTime
- When the revision was registered with AWS CodeDeploy.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GenericRevisionInfo clone()
clone
in class java.lang.Object