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
TeamPlayerRequestBody provides the request body payload for linking roles to teams.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorTeamPlayerRequestBody(TeamPlayerRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.booleanReturn whether it is a TeamLeadership role or a TeamMembership role.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.toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.rest.ExternalSourceRequestBody
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
-
Constructor Details
-
TeamPlayerRequestBody
public TeamPlayerRequestBody()Default constructor -
TeamPlayerRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
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
Return the position description for this role.- Returns:
- name
-
setPosition
Set up the position description for this role.- Parameters:
position- name
-
toString
JSON-style toString.- Overrides:
toStringin classExternalSourceRequestBody- Returns:
- list of properties and their values.
-
equals
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
-