Class AgentTypeKey
- java.lang.Object
-
- jetbrains.buildServer.serverSide.agentTypes.AgentTypeKey
-
- All Implemented Interfaces:
Comparable<AgentTypeKey>
public final class AgentTypeKey extends Object implements Comparable<AgentTypeKey>
Key for Agent Type.Value object.
-
-
Constructor Summary
Constructors Constructor Description AgentTypeKey(String cloudCode, String profileId, String typeId)
Trivial constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
clone()
int
compareTo(AgentTypeKey that)
boolean
equals(Object that)
boolean
equals(AgentTypeKey that)
String
getCloudCode()
String
getProfileId()
String
getTypeId()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
AgentTypeKey
public AgentTypeKey(@NotNull String cloudCode, @NotNull String profileId, @NotNull String typeId)
Trivial constructor.- Parameters:
cloudCode
- seegetCloudCode()
.profileId
- seegetProfileId()
.typeId
- seegetTypeId()
.
-
-
Method Detail
-
equals
public boolean equals(AgentTypeKey that)
-
compareTo
public int compareTo(AgentTypeKey that)
- Specified by:
compareTo
in interfaceComparable<AgentTypeKey>
-
getCloudCode
@NotNull public String getCloudCode()
- Returns:
- Name of the cloud.
Each cloud is represented by a special plugin. So, this name is an immutable property of that plugin.
Value - 1 to 6 characters from ASCII.
Unique in the system.
-
getProfileId
@NotNull public String getProfileId()
- Returns:
- Name of the cloud profile. Up to 30 characters.
Or
AgentTypeConsts.AGENT_CLOUD_PROFILE
for non-cloud agents.Unique in the one cloud scope.
-
getTypeId
@NotNull public String getTypeId()
- Returns:
- Name of the agent type in one profile.
Unique in the one profile scope.
Value: 1 to 60 characters.
-
-