Class VersionInfo
- java.lang.Object
-
- com.amazonaws.services.ecs.model.VersionInfo
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VersionInfo extends Object implements Serializable, Cloneable
The Docker and Amazon ECS container agent version information about a container instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VersionInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionInfo
clone()
boolean
equals(Object obj)
String
getAgentHash()
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs- agent GitHub repository.String
getAgentVersion()
The version number of the Amazon ECS container agent.String
getDockerVersion()
The Docker version running on the container instance.int
hashCode()
void
setAgentHash(String agentHash)
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs- agent GitHub repository.void
setAgentVersion(String agentVersion)
The version number of the Amazon ECS container agent.void
setDockerVersion(String dockerVersion)
The Docker version running on the container instance.String
toString()
Returns a string representation of this object; useful for testing and debugging.VersionInfo
withAgentHash(String agentHash)
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs- agent GitHub repository.VersionInfo
withAgentVersion(String agentVersion)
The version number of the Amazon ECS container agent.VersionInfo
withDockerVersion(String dockerVersion)
The Docker version running on the container instance.
-
-
-
Method Detail
-
setAgentVersion
public void setAgentVersion(String agentVersion)
The version number of the Amazon ECS container agent.
- Parameters:
agentVersion
- The version number of the Amazon ECS container agent.
-
getAgentVersion
public String getAgentVersion()
The version number of the Amazon ECS container agent.
- Returns:
- The version number of the Amazon ECS container agent.
-
withAgentVersion
public VersionInfo withAgentVersion(String agentVersion)
The version number of the Amazon ECS container agent.
- Parameters:
agentVersion
- The version number of the Amazon ECS container agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAgentHash
public void setAgentHash(String agentHash)
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs- agent GitHub repository.
- Parameters:
agentHash
- The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.
-
getAgentHash
public String getAgentHash()
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs- agent GitHub repository.
- Returns:
- The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.
-
withAgentHash
public VersionInfo withAgentHash(String agentHash)
The Git commit hash for the Amazon ECS container agent build on the amazon-ecs- agent GitHub repository.
- Parameters:
agentHash
- The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDockerVersion
public void setDockerVersion(String dockerVersion)
The Docker version running on the container instance.
- Parameters:
dockerVersion
- The Docker version running on the container instance.
-
getDockerVersion
public String getDockerVersion()
The Docker version running on the container instance.
- Returns:
- The Docker version running on the container instance.
-
withDockerVersion
public VersionInfo withDockerVersion(String dockerVersion)
The Docker version running on the container instance.
- Parameters:
dockerVersion
- The Docker version running on the container instance.- 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 VersionInfo clone()
-
-