Class DescribeAgentVersionsResult
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.DescribeAgentVersionsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeAgentVersionsResult extends Object implements Serializable, Cloneable
Contains the response to a
DescribeAgentVersions
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeAgentVersionsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeAgentVersionsResult
clone()
boolean
equals(Object obj)
List<AgentVersion>
getAgentVersions()
The agent versions for the specified stack or configuration manager.int
hashCode()
void
setAgentVersions(Collection<AgentVersion> agentVersions)
The agent versions for the specified stack or configuration manager.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeAgentVersionsResult
withAgentVersions(AgentVersion... agentVersions)
The agent versions for the specified stack or configuration manager.DescribeAgentVersionsResult
withAgentVersions(Collection<AgentVersion> agentVersions)
The agent versions for the specified stack or configuration manager.
-
-
-
Method Detail
-
getAgentVersions
public List<AgentVersion> getAgentVersions()
The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
- Returns:
- The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
-
setAgentVersions
public void setAgentVersions(Collection<AgentVersion> agentVersions)
The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
- Parameters:
agentVersions
- The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
-
withAgentVersions
public DescribeAgentVersionsResult withAgentVersions(AgentVersion... agentVersions)
The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
NOTE: This method appends the values to the existing list (if any). Use
setAgentVersions(java.util.Collection)
orwithAgentVersions(java.util.Collection)
if you want to override the existing values.- Parameters:
agentVersions
- The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAgentVersions
public DescribeAgentVersionsResult withAgentVersions(Collection<AgentVersion> agentVersions)
The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.
- Parameters:
agentVersions
- The agent versions for the specified stack or configuration manager. Note that this value is the complete version number, not the abbreviated number used by the console.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeAgentVersionsResult clone()
-
-