Class TeamPlayerRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.CommunityProfileOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody
-
- org.odpi.openmetadata.accessservices.communityprofile.rest.TeamPlayerRequestBody
-
- All Implemented Interfaces:
Serializable
public class TeamPlayerRequestBody extends ExternalSourceRequestBody
TeamPlayerRequestBody provides the request body payload for linking roles to teams.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TeamPlayerRequestBody()Default constructorTeamPlayerRequestBody(TeamPlayerRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.booleangetIsLeadershipRole()Return whether it is a TeamLeadership role or a TeamMembership role.StringgetPosition()Return the position description for this role.inthashCode()Return hash code for this objectvoidsetIsLeadershipRole(boolean leadershipRole)Set up whether it is a TeamLeadership role or a TeamMembership role.voidsetPosition(String position)Set up the position description for this role.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
-
-
-
Constructor Detail
-
TeamPlayerRequestBody
public TeamPlayerRequestBody()
Default constructor
-
TeamPlayerRequestBody
public TeamPlayerRequestBody(TeamPlayerRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getIsLeadershipRole
public boolean getIsLeadershipRole()
Return whether it is a TeamLeadership role or a TeamMembership role.- Returns:
- flag
-
setIsLeadershipRole
public void setIsLeadershipRole(boolean leadershipRole)
Set up whether it is a TeamLeadership role or a TeamMembership role.- Parameters:
leadershipRole- flag
-
getPosition
public String getPosition()
Return the position description for this role.- Returns:
- name
-
setPosition
public void setPosition(String position)
Set up the position description for this role.- Parameters:
position- name
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classExternalSourceRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classExternalSourceRequestBody- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classExternalSourceRequestBody- Returns:
- int hash code
-
-