_propDict)) { if (is_a($this->_propDict["roleType"], "\Beta\Microsoft\Graph\Model\AwsRoleType") || is_null($this->_propDict["roleType"])) { return $this->_propDict["roleType"]; } else { $this->_propDict["roleType"] = new AwsRoleType($this->_propDict["roleType"]); return $this->_propDict["roleType"]; } } return null; } /** * Sets the roleType * * @param AwsRoleType $val The roleType * * @return AwsRole */ public function setRoleType($val) { $this->_propDict["roleType"] = $val; return $this; } /** * Gets the trustEntityType * * @return AwsRoleTrustEntityType|null The trustEntityType */ public function getTrustEntityType() { if (array_key_exists("trustEntityType", $this->_propDict)) { if (is_a($this->_propDict["trustEntityType"], "\Beta\Microsoft\Graph\Model\AwsRoleTrustEntityType") || is_null($this->_propDict["trustEntityType"])) { return $this->_propDict["trustEntityType"]; } else { $this->_propDict["trustEntityType"] = new AwsRoleTrustEntityType($this->_propDict["trustEntityType"]); return $this->_propDict["trustEntityType"]; } } return null; } /** * Sets the trustEntityType * * @param AwsRoleTrustEntityType $val The trustEntityType * * @return AwsRole */ public function setTrustEntityType($val) { $this->_propDict["trustEntityType"] = $val; return $this; } }