Class GenericRevisionInfo
- java.lang.Object
-
- com.amazonaws.services.codedeploy.model.GenericRevisionInfo
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GenericRevisionInfo extends Object implements Serializable, Cloneable
Information about an application revision.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericRevisionInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericRevisionInfoclone()booleanequals(Object obj)List<String>getDeploymentGroups()The deployment groups for which this is the current target revision.StringgetDescription()A comment about the revision.DategetFirstUsedTime()When the revision was first used by AWS CodeDeploy.DategetLastUsedTime()When the revision was last used by AWS CodeDeploy.DategetRegisterTime()When the revision was registered with AWS CodeDeploy.inthashCode()voidsetDeploymentGroups(Collection<String> deploymentGroups)The deployment groups for which this is the current target revision.voidsetDescription(String description)A comment about the revision.voidsetFirstUsedTime(Date firstUsedTime)When the revision was first used by AWS CodeDeploy.voidsetLastUsedTime(Date lastUsedTime)When the revision was last used by AWS CodeDeploy.voidsetRegisterTime(Date registerTime)When the revision was registered with AWS CodeDeploy.StringtoString()Returns a string representation of this object; useful for testing and debugging.GenericRevisionInfowithDeploymentGroups(String... deploymentGroups)The deployment groups for which this is the current target revision.GenericRevisionInfowithDeploymentGroups(Collection<String> deploymentGroups)The deployment groups for which this is the current target revision.GenericRevisionInfowithDescription(String description)A comment about the revision.GenericRevisionInfowithFirstUsedTime(Date firstUsedTime)When the revision was first used by AWS CodeDeploy.GenericRevisionInfowithLastUsedTime(Date lastUsedTime)When the revision was last used by AWS CodeDeploy.GenericRevisionInfowithRegisterTime(Date registerTime)When the revision was registered with AWS CodeDeploy.
-
-
-
Method Detail
-
setDescription
public void setDescription(String description)
A comment about the revision.
- Parameters:
description- A comment about the revision.
-
getDescription
public String getDescription()
A comment about the revision.
- Returns:
- A comment about the revision.
-
withDescription
public GenericRevisionInfo withDescription(String description)
A comment about the revision.
- Parameters:
description- A comment about the revision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDeploymentGroups
public List<String> getDeploymentGroups()
The deployment groups for which this is the current target revision.
- Returns:
- The deployment groups for which this is the current target revision.
-
setDeploymentGroups
public void setDeploymentGroups(Collection<String> deploymentGroups)
The deployment groups for which this is the current target revision.
- Parameters:
deploymentGroups- The deployment groups for which this is the current target revision.
-
withDeploymentGroups
public GenericRevisionInfo withDeploymentGroups(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)orwithDeploymentGroups(java.util.Collection)if you want to override the existing values.- Parameters:
deploymentGroups- The deployment groups for which this is the current target revision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDeploymentGroups
public GenericRevisionInfo withDeploymentGroups(Collection<String> deploymentGroups)
The deployment groups for which this is the current target revision.
- Parameters:
deploymentGroups- The deployment groups for which this is the current target revision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFirstUsedTime
public void setFirstUsedTime(Date firstUsedTime)
When the revision was first used by AWS CodeDeploy.
- Parameters:
firstUsedTime- When the revision was first used by AWS CodeDeploy.
-
getFirstUsedTime
public Date getFirstUsedTime()
When the revision was first used by AWS CodeDeploy.
- Returns:
- When the revision was first used by AWS CodeDeploy.
-
withFirstUsedTime
public GenericRevisionInfo withFirstUsedTime(Date firstUsedTime)
When the revision was first used by AWS CodeDeploy.
- Parameters:
firstUsedTime- When the revision was first used by AWS CodeDeploy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastUsedTime
public void setLastUsedTime(Date lastUsedTime)
When the revision was last used by AWS CodeDeploy.
- Parameters:
lastUsedTime- When the revision was last used by AWS CodeDeploy.
-
getLastUsedTime
public Date getLastUsedTime()
When the revision was last used by AWS CodeDeploy.
- Returns:
- When the revision was last used by AWS CodeDeploy.
-
withLastUsedTime
public GenericRevisionInfo withLastUsedTime(Date lastUsedTime)
When the revision was last used by AWS CodeDeploy.
- Parameters:
lastUsedTime- When the revision was last used by AWS CodeDeploy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegisterTime
public void setRegisterTime(Date registerTime)
When the revision was registered with AWS CodeDeploy.
- Parameters:
registerTime- When the revision was registered with AWS CodeDeploy.
-
getRegisterTime
public Date getRegisterTime()
When the revision was registered with AWS CodeDeploy.
- Returns:
- When the revision was registered with AWS CodeDeploy.
-
withRegisterTime
public GenericRevisionInfo withRegisterTime(Date registerTime)
When the revision was registered with AWS CodeDeploy.
- Parameters:
registerTime- When the revision was registered with AWS CodeDeploy.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GenericRevisionInfo clone()
-
-