public void setLevel2(AgentHierarchyGroup level2) {
        this.level2 = level2;
    }
<p>
The group at level two of the agent hierarchy.
</p>

@param level2
       The group at level two of the agent hierarchy.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/HierarchyGroups.java